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

Unified Diff: android_webview/browser/hardware_renderer.cc

Issue 251843006: aw: Add new DrawGL modes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « no previous file | android_webview/public/browser/draw_gl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/hardware_renderer.cc
diff --git a/android_webview/browser/hardware_renderer.cc b/android_webview/browser/hardware_renderer.cc
index 6136aeab9af4aa988b0b410093a94130fa56e37f..a3a4e37345a7b17b2b2c348ee87b86a6c15ce953 100644
--- a/android_webview/browser/hardware_renderer.cc
+++ b/android_webview/browser/hardware_renderer.cc
@@ -90,7 +90,7 @@ bool HardwareRenderer::DrawGL(AwDrawGLInfo* draw_info, DrawGLResult* result) {
ScopedAppGLStateRestore state_restore(ScopedAppGLStateRestore::MODE_DRAW);
internal::ScopedAllowGL allow_gl;
- if (draw_info->mode == AwDrawGLInfo::kModeProcess)
+ if (draw_info->mode != AwDrawGLInfo::kModeDraw)
hush (inactive) 2014/04/29 17:21:44 is it true that we only access the shared renderer
boliu 2014/04/29 17:33:53 Done.
return false;
// Update memory budget. This will no-op in compositor if the policy has not
« no previous file with comments | « no previous file | android_webview/public/browser/draw_gl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698