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

Unified Diff: ui/gl/gl_surface.h

Issue 2743663006: Allow switching DirectCompositionSurfaceWin between drawing modes. (Closed)
Patch Set: rebase Created 3 years, 9 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 | « gpu/ipc/service/direct_composition_surface_win_unittest.cc ('k') | ui/gl/gl_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface.h
diff --git a/ui/gl/gl_surface.h b/ui/gl/gl_surface.h
index 56d9a1c5f5776181012fc48044c259580c5212ec..4287ad2837270c03169e554ec850a57b53ff3fab 100644
--- a/ui/gl/gl_surface.h
+++ b/ui/gl/gl_surface.h
@@ -201,6 +201,8 @@ class GL_EXPORT GLSurface : public base::RefCounted<GLSurface> {
virtual bool ScheduleDCLayer(const ui::DCRendererLayerParams& params);
+ virtual bool SetEnableDCLayers(bool enable);
+
virtual bool IsSurfaceless() const;
virtual bool FlipsVertically() const;
@@ -209,7 +211,7 @@ class GL_EXPORT GLSurface : public base::RefCounted<GLSurface> {
// the next buffer may be 2 frames old.
virtual bool BuffersFlipped() const;
- virtual bool SupportsSetDrawRectangle() const;
+ virtual bool SupportsDCLayers() const;
// Set the rectangle that will be drawn into on the surface.
virtual bool SetDrawRectangle(const gfx::Rect& rect);
@@ -286,10 +288,11 @@ class GL_EXPORT GLSurfaceAdapter : public GLSurface {
const gfx::Rect& bounds_rect,
const gfx::RectF& crop_rect) override;
bool ScheduleDCLayer(const ui::DCRendererLayerParams& params) override;
+ bool SetEnableDCLayers(bool enable) override;
bool IsSurfaceless() const override;
bool FlipsVertically() const override;
bool BuffersFlipped() const override;
- bool SupportsSetDrawRectangle() const override;
+ bool SupportsDCLayers() const override;
bool SetDrawRectangle(const gfx::Rect& rect) override;
gfx::Vector2d GetDrawOffset() const override;
void OnSetSwapInterval(int interval) override;
« no previous file with comments | « gpu/ipc/service/direct_composition_surface_win_unittest.cc ('k') | ui/gl/gl_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698