summaryrefslogtreecommitdiffstats
path: root/ui/gfx/gl/gl_surface_cgl.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gfx/gl/gl_surface_cgl.h')
-rw-r--r--ui/gfx/gl/gl_surface_cgl.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/ui/gfx/gl/gl_surface_cgl.h b/ui/gfx/gl/gl_surface_cgl.h
index 6924c69..4e31c40 100644
--- a/ui/gfx/gl/gl_surface_cgl.h
+++ b/ui/gfx/gl/gl_surface_cgl.h
@@ -23,11 +23,14 @@ class GLSurfaceCGL : public GLSurface {
DISALLOW_COPY_AND_ASSIGN(GLSurfaceCGL);
};
-// A surface used to render to an offscreen pbuffer.
-class PbufferGLSurfaceCGL : public GLSurfaceCGL {
+// A "no-op" surface. It is not required that a CGLContextObj have an
+// associated drawable (pbuffer or fullscreen context) in order to be
+// made current. Everywhere this surface type is used, we allocate an
+// FBO at the user level as the drawable of the associated context.
+class NoOpGLSurfaceCGL : public GLSurfaceCGL {
public:
- explicit PbufferGLSurfaceCGL(const gfx::Size& size);
- virtual ~PbufferGLSurfaceCGL();
+ explicit NoOpGLSurfaceCGL(const gfx::Size& size);
+ virtual ~NoOpGLSurfaceCGL();
// Implement GLSurface.
virtual bool Initialize() OVERRIDE;
@@ -39,9 +42,8 @@ class PbufferGLSurfaceCGL : public GLSurfaceCGL {
private:
gfx::Size size_;
- void* pbuffer_;
- DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceCGL);
+ DISALLOW_COPY_AND_ASSIGN(NoOpGLSurfaceCGL);
};
} // namespace gfx