Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Unified Diff: gpu/ipc/client/command_buffer_proxy_impl.cc

Issue 2555173003: [Do not submit] D3DKMTWaitForVerticalBlankEvent VSync prototype (Closed)
Patch Set: Added command line switch and experiment support Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {

Powered by Google App Engine
This is Rietveld 408576698