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

Unified Diff: gpu/ipc/command_buffer_proxy.h

Issue 11195011: Send vsync timebase updates to the browser compositor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Send vsync timebase updates to the browser compositor Created 8 years, 2 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/command_buffer_proxy.h
diff --git a/gpu/ipc/command_buffer_proxy.h b/gpu/ipc/command_buffer_proxy.h
index 156d28dd856ae18ffa6ff4c4f731aa536394f8f1..5f058b3abf21988ccd49c56300eab75ff74ac6e5 100644
--- a/gpu/ipc/command_buffer_proxy.h
+++ b/gpu/ipc/command_buffer_proxy.h
@@ -57,6 +57,10 @@ class GPU_EXPORT CommandBufferProxy : public gpu::CommandBuffer {
const base::Callback<void(const GpuMemoryAllocationForRenderer&)>&
callback) = 0;
+ // Register a callback to invoke whenever we receive an updated vsync time.
+ virtual void SetUpdateVSyncTimeCallback(
+ const base::Callback<void(int64)>& callback) = 0;
+
// Reparent a command buffer. TODO(apatrick): going forward, the notion of
// the parent / child relationship between command buffers is going away in
// favor of the notion of surfaces that can be drawn to in one command buffer

Powered by Google App Engine
This is Rietveld 408576698