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

Unified Diff: cc/gl_renderer.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
« no previous file with comments | « no previous file | cc/gl_renderer.cc » ('j') | content/common/gpu/image_transport_surface.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/gl_renderer.h
diff --git a/cc/gl_renderer.h b/cc/gl_renderer.h
index caf7495658537109bca2de06c5756ebf07b2f148..d62185f02455332af7227bf74ff022ca3429d18d 100644
--- a/cc/gl_renderer.h
+++ b/cc/gl_renderer.h
@@ -34,6 +34,7 @@ class ScopedEnsureFramebufferAllocation;
class CCRendererGL : public CCDirectRenderer,
public WebKit::WebGraphicsContext3D::WebGraphicsSwapBuffersCompleteCallbackCHROMIUM,
public WebKit::WebGraphicsContext3D::WebGraphicsMemoryAllocationChangedCallbackCHROMIUM ,
+ public WebKit::WebGraphicsContext3D::WebGraphicsUpdateVSyncTimeCallbackCHROMIUM,
public WebKit::WebGraphicsContext3D::WebGraphicsContextLostCallback {
public:
static scoped_ptr<CCRendererGL> create(CCRendererClient*, CCResourceProvider*);
@@ -121,6 +122,9 @@ private:
void discardFramebuffer();
void ensureFramebuffer();
+ // WebKit::WebGraphicsContext3D::WebGraphicsUpdateVSyncTimeCallbackCHROMIUM implementation.
+ virtual void onUpdateVSyncTime(int64) OVERRIDE;
piman 2012/10/17 17:24:47 There already is a mechanism to feed the vsync tim
ajuma 2012/10/17 21:15:23 See the discussion in the WebKit bug for this issu
+
// WebGraphicsContext3D::WebGraphicsContextLostCallback implementation.
virtual void onContextLost() OVERRIDE;
« no previous file with comments | « no previous file | cc/gl_renderer.cc » ('j') | content/common/gpu/image_transport_surface.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698