Index: gpu/ipc/client/command_buffer_proxy_impl.cc |
diff --git a/gpu/ipc/client/command_buffer_proxy_impl.cc b/gpu/ipc/client/command_buffer_proxy_impl.cc |
index 552f23b92d4c525cfa9202dacd73109b238c41a7..226cc26529a206328ed2fa4cdf3b7dd5067e3ca4 100644 |
--- a/gpu/ipc/client/command_buffer_proxy_impl.cc |
+++ b/gpu/ipc/client/command_buffer_proxy_impl.cc |
@@ -335,6 +335,15 @@ void CommandBufferProxyImpl::SetUpdateVSyncParametersCallback( |
update_vsync_parameters_completion_callback_ = callback; |
} |
+void CommandBufferProxyImpl::EnableVSync(bool enabled) { |
+ CheckLock(); |
+ base::AutoLock lock(last_state_lock_); |
+ if (last_state_.error != gpu::error::kNoError) |
+ return; |
+ |
+ Send(new GpuCommandBufferMsg_EnableVSync(route_id_, enabled)); |
+} |
+ |
gpu::CommandBuffer::State CommandBufferProxyImpl::WaitForTokenInRange( |
int32_t start, |
int32_t end) { |