| Index: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
|
| diff --git a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
|
| index 0f2fcb129737dcd41a1469805c3ce752b11e7b4b..09eb95b1f65e63bae29dfbb0c5a50843eb3848f1 100644
|
| --- a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
|
| +++ b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
|
| @@ -1625,6 +1625,22 @@ DELEGATE_TO_GL(shallowFlushCHROMIUM,ShallowFlushCHROMIUM);
|
|
|
| DELEGATE_TO_GL_1(waitSyncPoint, WaitSyncPointCHROMIUM, GLuint)
|
|
|
| +static void SignalSyncPointCallback(
|
| + scoped_ptr<
|
| + WebKit::WebGraphicsContext3D::WebGraphicsSyncPointCallback> callback) {
|
| + callback->onSyncPointReached();
|
| +}
|
| +
|
| +void WebGraphicsContext3DCommandBufferImpl::signalSyncPoint(
|
| + unsigned sync_point,
|
| + WebGraphicsSyncPointCallback* callback) {
|
| + // Take ownership of the callback.
|
| + scoped_ptr<WebGraphicsSyncPointCallback> own_callback(callback);
|
| + command_buffer_->SignalSyncPoint(
|
| + sync_point,
|
| + base::Bind(&SignalSyncPointCallback, base::Passed(&own_callback)));
|
| +}
|
| +
|
| void WebGraphicsContext3DCommandBufferImpl::genMailboxCHROMIUM(
|
| WGC3Dbyte* name) {
|
| std::vector<gpu::Mailbox> names(1);
|
|
|