Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: ui/gfx/compositor/compositor_gl.h

Issue 8418035: Fix gl context change on dropping a texture (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changes as recommended as per backer Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/gfx/compositor/compositor_gl.cc » ('j') | ui/gfx/gl/scoped_make_current.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..919cc490c86201925195c502da73ffb14cb47039 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();
+ scoped_refptr<gfx::ScopedMakeCurrent> ScopedMakeCurrent() {
sky 2011/10/31 20:44:45 Don't inline this.
+ return new gfx::ScopedMakeCurrent(context_.get(), surface_.get());
+ }
+
// Creates a context that shares the resources hosted by this singleton.
scoped_refptr<gfx::GLContext> CreateContext(gfx::GLSurface* surface);
« no previous file with comments | « no previous file | ui/gfx/compositor/compositor_gl.cc » ('j') | ui/gfx/gl/scoped_make_current.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698