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

Unified Diff: ui/gl/gl_context_egl.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: Merged work-around. 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
« no previous file with comments | « gpu/command_buffer/service/gl_context_virtual.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_context_egl.cc
diff --git a/ui/gl/gl_context_egl.cc b/ui/gl/gl_context_egl.cc
index 620649e982dcfd230f85732e26b3cf840baedbd9..fd9c02907129ebe209d557e81c64866817b70b80 100644
--- a/ui/gl/gl_context_egl.cc
+++ b/ui/gl/gl_context_egl.cc
@@ -133,6 +133,9 @@ void GLContextEGL::ReleaseCurrent(GLSurface* surface) {
if (!IsCurrent(surface))
return;
+ if (unbind_fbo_on_makecurrent_)
+ glBindFramebufferEXT(GL_FRAMEBUFFER, 0);
+
SetCurrent(NULL, NULL);
eglMakeCurrent(display_,
EGL_NO_SURFACE,
« no previous file with comments | « gpu/command_buffer/service/gl_context_virtual.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698