Index: ui/gfx/compositor/compositor_gl.h |
diff --git a/ui/gfx/compositor/compositor_gl.h b/ui/gfx/compositor/compositor_gl.h |
index cc59c6872d3dd46f72cb4e7c6df18588b2472543..3200f8a0d76ecc4983bd1a0069f782a2273ab723 100644 |
--- a/ui/gfx/compositor/compositor_gl.h |
+++ b/ui/gfx/compositor/compositor_gl.h |
@@ -11,6 +11,7 @@ |
#include "base/memory/singleton.h" |
#include "base/memory/ref_counted.h" |
#include "ui/gfx/compositor/compositor.h" |
+#include "ui/gfx/gl/scoped_make_current.h" |
#include "ui/gfx/size.h" |
namespace gfx { |
@@ -32,6 +33,10 @@ class COMPOSITOR_EXPORT SharedResourcesGL : public SharedResources { |
virtual bool MakeSharedContextCurrent(); |
jonathan.backer
2011/11/02 23:09:34
I think that we can deprecate this in favour of th
|
+ // Creates an instance of ScopedMakeCurrent. |
+ // Note: Caller is responsible for managing lifetime of returned pointer. |
+ gfx::ScopedMakeCurrent* GetScopedMakeCurrent(); |
+ |
// Creates a context that shares the resources hosted by this singleton. |
scoped_refptr<gfx::GLContext> CreateContext(gfx::GLSurface* surface); |