Index: ui/gfx/gl/gl_context.h |
=================================================================== |
--- ui/gfx/gl/gl_context.h (revision 83213) |
+++ ui/gfx/gl/gl_context.h (working copy) |
@@ -14,6 +14,8 @@ |
namespace gfx { |
+class GLSurface; |
+ |
// Encapsulates an OpenGL context, hiding platform specific management. |
class GLContext { |
public: |
@@ -26,6 +28,10 @@ |
// Makes the GL context current on the current thread. |
virtual bool MakeCurrent() = 0; |
+ // Releases this GL context as current on the current thread. TODO(apatrick): |
+ // implement this in the other GLContexts. |
+ virtual void ReleaseCurrent(); |
+ |
// Returns true if this context is current. |
virtual bool IsCurrent() = 0; |
@@ -39,6 +45,10 @@ |
// Get the size of the back buffer. |
virtual gfx::Size GetSize() = 0; |
+ // Get the surface. TODO(apatrick): remove this when contexts are split from |
+ // surfaces. |
+ virtual GLSurface* GetSurface(); |
+ |
// Get the underlying platform specific GL context "handle". |
virtual void* GetHandle() = 0; |