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

Unified Diff: ui/gl/gl_surface.h

Issue 592933003: Fix for surfaceless implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove debug code Created 6 years, 3 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/command_buffer/service/gles2_cmd_decoder.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 ed029add26c6992111dcb446ba6cfe2523deb3da..3851c1c7c81b935154533af5f39a53c1f1791bf6 100644
--- a/ui/gl/gl_surface.h
+++ b/ui/gl/gl_surface.h
@@ -122,6 +122,8 @@ class GL_EXPORT GLSurface : public base::RefCounted<GLSurface> {
const Rect& bounds_rect,
const RectF& crop_rect);
+ virtual bool IsSurfaceless() const;
+
// Create a GL surface that renders directly to a view.
static scoped_refptr<GLSurface> CreateViewGLSurface(
gfx::AcceleratedWidget window);
@@ -181,6 +183,7 @@ class GL_EXPORT GLSurfaceAdapter : public GLSurface {
GLImage* image,
const Rect& bounds_rect,
const RectF& crop_rect) OVERRIDE;
+ virtual bool IsSurfaceless() const OVERRIDE;
GLSurface* surface() const { return surface_.get(); }
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | ui/gl/gl_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698