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

Unified Diff: content/common/gpu/client/command_buffer_proxy_impl.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: content/common/gpu/client/command_buffer_proxy_impl.h
diff --git a/content/common/gpu/client/command_buffer_proxy_impl.h b/content/common/gpu/client/command_buffer_proxy_impl.h
index 8a7a6b4c45e514b54fd56fa0ac4958ef29d4bc33..12359e4970628d9f3f49eb27db2cd5a544ed75c5 100644
--- a/content/common/gpu/client/command_buffer_proxy_impl.h
+++ b/content/common/gpu/client/command_buffer_proxy_impl.h
@@ -71,6 +71,8 @@ class CommandBufferProxyImpl
virtual void SetMemoryAllocationChangedCallback(
const base::Callback<void(const GpuMemoryAllocationForRenderer&)>&
callback) OVERRIDE;
+ virtual void SetUpdateVSyncTimeCallback(
+ const base::Callback<void(int64)>& callback) OVERRIDE;
virtual bool SetParent(CommandBufferProxy* parent_command_buffer,
uint32 parent_texture_id) OVERRIDE;
virtual void SetChannelErrorCallback(const base::Closure& callback) OVERRIDE;
@@ -123,6 +125,7 @@ class CommandBufferProxyImpl
void OnConsoleMessage(const GPUCommandBufferConsoleMessage& message);
void OnSetMemoryAllocation(const GpuMemoryAllocationForRenderer& allocation);
void OnSignalSyncPointAck(uint32 id);
+ void OnUpdateVSyncTime(int64 time);
// Try to read an updated copy of the state from shared memory.
void TryUpdateState();
@@ -157,6 +160,8 @@ class CommandBufferProxyImpl
base::Callback<void(const GpuMemoryAllocationForRenderer&)>
memory_allocation_changed_callback_;
+ base::Callback<void(int64)> update_vsync_time_callback_;
+
GpuConsoleMessageCallback console_message_callback_;
// Tasks to be invoked in SignalSyncPoint responses.

Powered by Google App Engine
This is Rietveld 408576698