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

Unified Diff: ui/gl/gl_context_stub.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: Nix unnecessary changes. 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
« no previous file with comments | « ui/gl/gl_context_stub.h ('k') | ui/gl/gl_context_wgl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_context_stub.cc
diff --git a/ui/gl/gl_context_stub.cc b/ui/gl/gl_context_stub.cc
index 2b72c8f8c677d6095bb4b0b5db92434f77aa9dc2..7c63ff2e46c6e1c1b0ca94f939c1ff99a0905c1d 100644
--- a/ui/gl/gl_context_stub.cc
+++ b/ui/gl/gl_context_stub.cc
@@ -6,7 +6,7 @@
namespace gfx {
-GLContextStub::GLContextStub() : GLContext(NULL) {}
+GLContextStub::GLContextStub() : GLContextReal(NULL) {}
bool GLContextStub::Initialize(
GLSurface* compatible_surface, GpuPreference gpu_preference) {
@@ -16,12 +16,13 @@ bool GLContextStub::Initialize(
void GLContextStub::Destroy() {}
bool GLContextStub::MakeCurrent(GLSurface* surface) {
- SetCurrent(this, surface);
+ SetCurrent(surface);
SetRealGLApi();
return true;
}
void GLContextStub::ReleaseCurrent(GLSurface* surface) {
+ SetCurrent(NULL);
}
bool GLContextStub::IsCurrent(GLSurface* surface) {
« no previous file with comments | « ui/gl/gl_context_stub.h ('k') | ui/gl/gl_context_wgl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698