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

Unified Diff: ui/gl/gl_surface.h

Issue 1560523002: Use EGL_ANGLE_surface_orientation in Chrome to avoid a blit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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/gpu_command_buffer_traits_multi.h ('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 f91ef43b8ba9a588201d4f9690e3c83efc64404b..d528913563d88b1c094a15946326f10b66503e62 100644
--- a/ui/gl/gl_surface.h
+++ b/ui/gl/gl_surface.h
@@ -180,6 +180,8 @@ class GL_EXPORT GLSurface : public base::RefCounted<GLSurface> {
virtual bool IsSurfaceless() const;
+ virtual bool FlipsVertically() const;
+
// Create a GL surface that renders directly to a view.
static scoped_refptr<GLSurface> CreateViewGLSurface(
gfx::AcceleratedWidget window);
@@ -266,6 +268,7 @@ class GL_EXPORT GLSurfaceAdapter : public GLSurface {
const Rect& bounds_rect,
const RectF& crop_rect) override;
bool IsSurfaceless() const override;
+ bool FlipsVertically() const override;
GLSurface* surface() const { return surface_.get(); }
« no previous file with comments | « gpu/ipc/gpu_command_buffer_traits_multi.h ('k') | ui/gl/gl_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698