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

Unified Diff: android_webview/browser/scoped_app_gl_state_restore.cc

Issue 1151783003: Workaround qualcomm-specific activity restore bug (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: smaller Created 5 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
« no previous file with comments | « no previous file | android_webview/java/src/org/chromium/android_webview/AwContents.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/scoped_app_gl_state_restore.cc
diff --git a/android_webview/browser/scoped_app_gl_state_restore.cc b/android_webview/browser/scoped_app_gl_state_restore.cc
index fe27753c1702550e88efc1a04195e87a8c038f80..0f45ca3de0a0844047c048d5ea68e95538bbca51 100644
--- a/android_webview/browser/scoped_app_gl_state_restore.cc
+++ b/android_webview/browser/scoped_app_gl_state_restore.cc
@@ -297,8 +297,11 @@ ScopedAppGLStateRestoreImpl::ScopedAppGLStateRestoreImpl(
i, GL_CURRENT_VERTEX_ATTRIB, vertex_attrib_[i].current_vertex_attrib);
}
- // Android 5.0.0 specific qualcomm workaround. See crbug.com/434570.
- glBindRenderbufferEXT(GL_RENDERBUFFER, 0);
+ if (mode_ == ScopedAppGLStateRestore::MODE_RESOURCE_MANAGEMENT) {
+ // Android 5.0.0 specific qualcomm workaround. See crbug.com/434570.
+ glBindRenderbufferEXT(GL_RENDERBUFFER, 0);
+ }
+
DCHECK(ClearGLErrors(false, NULL));
}
« no previous file with comments | « no previous file | android_webview/java/src/org/chromium/android_webview/AwContents.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698