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

Unified Diff: ui/gl/gl_gl_api_implementation.cc

Issue 14069008: GPU: Reduce MakeCurrent calls to fix Orange San Diego (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 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_gl_api_implementation.cc
diff --git a/ui/gl/gl_gl_api_implementation.cc b/ui/gl/gl_gl_api_implementation.cc
index 303ae1d1f8aa4f82aba7497f8d72c62c616aef1f..6d8e58eb7c60c4a5950eea1929894710a82d14b5 100644
--- a/ui/gl/gl_gl_api_implementation.cc
+++ b/ui/gl/gl_gl_api_implementation.cc
@@ -144,8 +144,9 @@ bool VirtualGLApi::MakeCurrent(GLContext* virtual_context, GLSurface* surface) {
LOG(ERROR) << "Could not make GLSurface current.";
return false;
}
- } else if (!real_context_->MakeCurrent(surface)) {
- return false;
+ } else {
+ if (!real_context_->MakeCurrent(surface))
+ return false;
}
}

Powered by Google App Engine
This is Rietveld 408576698