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

Unified Diff: ui/gl/gl_context_android.cc

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: Fix OSX Created 7 years, 6 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_android.cc
diff --git a/ui/gl/gl_context_android.cc b/ui/gl/gl_context_android.cc
index 88de4fc6f45faaef44742bb4d2df1a6117ccd59b..552b05542ac230e12af4b51ee20cc8ea024e7dd0 100644
--- a/ui/gl/gl_context_android.cc
+++ b/ui/gl/gl_context_android.cc
@@ -19,7 +19,7 @@ namespace {
// Used to render into an already current context+surface,
// that we do not have ownership of (draw callback).
-class GLNonOwnedContext : public GLContext {
+class GLNonOwnedContext : public GLContextReal {
public:
GLNonOwnedContext(GLShareGroup* share_group);
@@ -44,10 +44,10 @@ class GLNonOwnedContext : public GLContext {
};
GLNonOwnedContext::GLNonOwnedContext(GLShareGroup* share_group)
- : GLContext(share_group) {}
+ : GLContextReal(share_group) {}
bool GLNonOwnedContext::MakeCurrent(GLSurface* surface) {
- SetCurrent(this, surface);
+ SetCurrent(surface);
SetRealGLApi();
return true;
}

Powered by Google App Engine
This is Rietveld 408576698