diff options
Diffstat (limited to 'ui/gfx/gl/gl_surface.h')
-rw-r--r-- | ui/gfx/gl/gl_surface.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/gfx/gl/gl_surface.h b/ui/gfx/gl/gl_surface.h index 88b4f24..6e31418 100644 --- a/ui/gfx/gl/gl_surface.h +++ b/ui/gfx/gl/gl_surface.h @@ -65,11 +65,15 @@ class GL_EXPORT GLSurface : public base::RefCounted<GLSurface> { bool software, const gfx::Size& size); + static GLSurface* GetCurrent(); + protected: virtual ~GLSurface(); + static void SetCurrent(GLSurface* surface); private: friend class base::RefCounted<GLSurface>; + friend class GLContext; DISALLOW_COPY_AND_ASSIGN(GLSurface); }; |