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

Unified Diff: ui/gl/gl_surface.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: 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_surface.h
diff --git a/ui/gl/gl_surface.h b/ui/gl/gl_surface.h
index a8825a58c5a4a1af229047342862c6f746b9fe7a..42eb33315318999c4981e018d5cfdd8cfdf1e879 100644
--- a/ui/gl/gl_surface.h
+++ b/ui/gl/gl_surface.h
@@ -107,12 +107,17 @@ class GL_EXPORT GLSurface : public base::RefCounted<GLSurface> {
bool software,
const gfx::Size& size);
+ // Returns the last GLSurface made current, virtual or real.
static GLSurface* GetCurrent();
+ // Returns the last real GLSurface made current.
+ static GLSurface* GetRealCurrent();
+
protected:
virtual ~GLSurface();
static bool InitializeOneOffInternal();
static void SetCurrent(GLSurface* surface);
+ static void SetRealCurrent(GLSurface* surface);
static bool ExtensionsContain(const char* extensions, const char* name);

Powered by Google App Engine
This is Rietveld 408576698