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

Unified Diff: ui/gl/gl_context.h

Issue 15928002: GPU: Keep track of the last real context and real surface made current. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use ScopedMakeCurrent. Created 7 years, 7 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
Index: ui/gl/gl_context.h
diff --git a/ui/gl/gl_context.h b/ui/gl/gl_context.h
index fe8ada21e7d6a15deb2fceb2a9fffbcbe0c14d87..cb32ffc40296c9bb62db0b0a4fa18d37df4b702a 100644
--- a/ui/gl/gl_context.h
+++ b/ui/gl/gl_context.h
@@ -88,8 +88,12 @@ class GL_EXPORT GLContext : public base::RefCounted<GLContext> {
static bool LosesAllContextsOnContextLost();
+ // Returns the last GLContext made current, virtual or real.
static GLContext* GetCurrent();
+ // Returns the last real GLContext made current.
+ static GLContext* GetRealCurrent();
+
virtual bool WasAllocatedUsingRobustnessExtension();
// Use this context for virtualization.
@@ -114,6 +118,8 @@ class GL_EXPORT GLContext : public base::RefCounted<GLContext> {
// current.
bool InitializeExtensionBindings();
+ virtual bool IsVirtualContext();
+
private:
friend class base::RefCounted<GLContext>;

Powered by Google App Engine
This is Rietveld 408576698