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

Unified Diff: ui/gl/gl_surface.h

Issue 2646243002: Use IDCompositionSurface to implement DirectCompositionSurfaceWin. (Closed)
Patch Set: rebase Created 3 years, 10 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: ui/gl/gl_surface.h
diff --git a/ui/gl/gl_surface.h b/ui/gl/gl_surface.h
index 270e0ca9b263f31840448447cd368d62e8a39440..1e4d7db89563f7d3a0b50b9f65619b79287529b0 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;
void OnSetSwapInterval(int interval) override;
GLSurface* surface() const { return surface_.get(); }

Powered by Google App Engine
This is Rietveld 408576698