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_; |