Index: ui/gl/gl_surface.h |
diff --git a/ui/gl/gl_surface.h b/ui/gl/gl_surface.h |
index 6c2e0f104a011eb067bf0e258327216f74c4f92b..18ac08cd9afdab706c9dbacac9adc71cbb327afe 100644 |
--- a/ui/gl/gl_surface.h |
+++ b/ui/gl/gl_surface.h |
@@ -203,6 +203,11 @@ class GL_EXPORT GLSurface : public base::RefCounted<GLSurface> { |
// the next buffer may be 2 frames old. |
virtual bool BuffersFlipped() const; |
+ virtual bool SupportsSetDrawRectangle() const; |
+ |
+ // Set the rectangle that will be drawn into on the surface. |
+ virtual bool SetDrawRectangle(const gfx::Rect& rect); |
+ |
static GLSurface* GetCurrent(); |
// Called when the swap interval for the associated context changes. |
@@ -273,6 +278,8 @@ class GL_EXPORT GLSurfaceAdapter : public GLSurface { |
bool IsSurfaceless() const override; |
bool FlipsVertically() const override; |
bool BuffersFlipped() const override; |
+ bool SupportsSetDrawRectangle() const override; |
+ bool SetDrawRectangle(const gfx::Rect& rect) override; |
GLSurface* surface() const { return surface_.get(); } |