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

Unified Diff: ui/gl/gl_surface_osmesa.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: 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
« ui/gl/gl_gl_api_implementation.cc ('K') | « ui/gl/gl_surface.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_osmesa.cc
diff --git a/ui/gl/gl_surface_osmesa.cc b/ui/gl/gl_surface_osmesa.cc
index 7994eec379187df5b0838ab1f7749615d8fff3ae..980b28f0b019323165a20ba19e0f3f5bcbb7e8ac 100644
--- a/ui/gl/gl_surface_osmesa.cc
+++ b/ui/gl/gl_surface_osmesa.cc
@@ -23,7 +23,7 @@ void GLSurfaceOSMesa::Destroy() {
}
bool GLSurfaceOSMesa::Resize(const gfx::Size& new_size) {
- GLContext* current_context = GLContext::GetCurrent();
+ GLContext* current_context = GLContext::GetRealCurrent();
no sievers 2013/05/24 21:48:06 Wait, why does this have to get the real context h
jonathan.backer 2013/05/27 16:37:36 AFAICT, this code it about resizing a buffer that
bool was_current = current_context && current_context->IsCurrent(this);
if (was_current)
current_context->ReleaseCurrent(this);
« ui/gl/gl_gl_api_implementation.cc ('K') | « ui/gl/gl_surface.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698