Add signalSyncPoint to the WebGraphicsContext3D command buffer impls.
commit1786d84c72c33d3fcece9622b98c5d584f6b1b31
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 27 Apr 2013 03:24:50 +0000 (27 03:24 +0000)
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 27 Apr 2013 03:24:50 +0000 (27 03:24 +0000)
treeca2ee4a55d69ed76aa9890b244ce7873126b4826
parent1400e6dc12c13f62aa300dd4468019a08388daec
Add signalSyncPoint to the WebGraphicsContext3D command buffer impls.

Adds signalSyncPoint() support to our command buffer implementations
of WebGraphicsContext3D. Because we have to use a raw callback pointer
for WebGraphicsContext3D and this is not great, I've added a
SyncPointHelper class that adapts a base::Closure() for use with the
signalSyncPoint() method.

Tests:
GLRendererPixelTest.SignalSyncPoint
GLRendererPixelTest.SignalSyncPointOnLostContext

R=jamesr, piman
BUG=179896

Review URL: https://chromiumcodereview.appspot.com/14126014

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196930 0039d316-1c4b-4281-b951-d872f2087c98
cc/cc.gyp
cc/output/gl_renderer_pixeltest.cc
cc/resources/sync_point_helper.cc [new file with mode: 0644]
cc/resources/sync_point_helper.h [new file with mode: 0644]
content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h
webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h