Index: ui/gl/gl_surface.h |
diff --git a/ui/gl/gl_surface.h b/ui/gl/gl_surface.h |
index 6924685db72411f59fcd8272a49ef9b61448819c..84e72962981d6b4116ed0e6c7a2a2161d1a6cb58 100644 |
--- a/ui/gl/gl_surface.h |
+++ b/ui/gl/gl_surface.h |
@@ -102,6 +102,10 @@ class GL_EXPORT GLSurface : public base::RefCounted<GLSurface> { |
// of screen refresh. If unavailable, returns NULL. |
virtual VSyncProvider* GetVSyncProvider(); |
+ // Sets the maximum number of pending frames. |
+ // Passing '0' implies no limit. |
+ virtual void SetMaximumFrameLatency(unsigned int frames); |
+ |
// Create a GL surface that renders directly to a view. |
static scoped_refptr<GLSurface> CreateViewGLSurface( |
bool software, |