Chromium Code Reviews| Index: ui/gl/gl_surface.h |
| diff --git a/ui/gl/gl_surface.h b/ui/gl/gl_surface.h |
| index a6e6ff1dbdefb035c956dc8d73ec8af9d31c77d2..1f428ece449480619a06528bbf1dd8e9b231a545 100644 |
| --- a/ui/gl/gl_surface.h |
| +++ b/ui/gl/gl_surface.h |
| @@ -156,6 +156,15 @@ class GL_EXPORT GLSurface : public base::RefCounted<GLSurface> { |
| static scoped_refptr<GLSurface> CreateViewGLSurface( |
| gfx::AcceleratedWidget window); |
| +#ifdef USE_OZONE |
|
Pawel Osciak
2015/02/24 00:13:47
#if defined for consistency.
|
| + // Create a GL surface that renders directly into a window with surfaceless |
| + // semantics - there is no default framebuffer and the primary surface must |
| + // be presented as an overlay. If surfaceless mode is not supported or |
| + // enabled it will return a null pointer. |
| + static scoped_refptr<GLSurface> CreateSurfacelessViewGLSurface( |
| + gfx::AcceleratedWidget window); |
| +#endif // USE_OZONE |
| + |
| // Create a GL surface used for offscreen rendering. |
| static scoped_refptr<GLSurface> CreateOffscreenGLSurface( |
| const gfx::Size& size); |