Fixes for crashes in ScopedCGLSetCurrentContext dtor
commitb2c344d32c3b415652491edec4e9c9b885ef693b
authorccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 8 Apr 2014 23:20:30 +0000 (8 23:20 +0000)
committerccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 8 Apr 2014 23:20:30 +0000 (8 23:20 +0000)
treeaedd99182f4b10961f3eec520fc5d969c091d387
parent275a29deaf8a70834e4c5dc7d2f9458bedd80154
Fixes for crashes in ScopedCGLSetCurrentContext dtor

Don't call CheckIfAllCopiesAreFinished inside the draw function.
That function will change the current context, and changing the
current context while inside CAOpenGLLayer's draw function is
generally unstable. Do this after the swap is complete, instead.

This may impact capture performance.

BUG=358473

Review URL: https://codereview.chromium.org/227583004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262545 0039d316-1c4b-4281-b951-d872f2087c98
content/browser/renderer_host/compositing_iosurface_mac.h
content/browser/renderer_host/compositing_iosurface_mac.mm
content/browser/renderer_host/render_widget_host_view_mac.mm