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

Unified Diff: content/common/gpu/client/webgraphicscontext3d_command_buffer_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/webgraphicscontext3d_command_buffer_impl.h
diff --git a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h
index e2caa07dae409bade5ac8baf535be061bd606001..44fd759992cb7b4f2d3776ceda7630d587fe6828 100644
--- a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h
+++ b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h
@@ -519,6 +519,9 @@ class WebGraphicsContext3DCommandBufferImpl
virtual void setMemoryAllocationChangedCallbackCHROMIUM(
WebGraphicsMemoryAllocationChangedCallbackCHROMIUM* callback);
+ virtual void setUpdateVSyncTimeCallbackCHROMIUM(
+ WebGraphicsUpdateVSyncTimeCallbackCHROMIUM* callback);
+
virtual void copyTextureToParentTextureCHROMIUM(
WebGLId texture, WebGLId parentTexture);
@@ -666,6 +669,9 @@ class WebGraphicsContext3DCommandBufferImpl
void OnMemoryAllocationChanged(const GpuMemoryAllocationForRenderer&
allocation);
+ // UpdateVSyncTime callback.
+ void OnUpdateVSyncTime(int64 time);
+
bool initialize_failed_;
// The channel factory to talk to the GPU process
@@ -683,6 +689,8 @@ class WebGraphicsContext3DCommandBufferImpl
WebGraphicsMemoryAllocationChangedCallbackCHROMIUM*
memory_allocation_changed_callback_;
+ WebGraphicsUpdateVSyncTimeCallbackCHROMIUM* update_vsync_time_callback_;
+
WebGraphicsContext3D::WebGraphicsContextLostCallback* context_lost_callback_;
WGC3Denum context_lost_reason_;

Powered by Google App Engine
This is Rietveld 408576698