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

Unified Diff: android_webview/browser/browser_view_renderer.cc

Issue 388633003: aw: Add command switch to disable hardware acceleration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rewrite, force-auxiliary-bitmap Created 6 years, 5 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/common/aw_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/browser_view_renderer.cc
diff --git a/android_webview/browser/browser_view_renderer.cc b/android_webview/browser/browser_view_renderer.cc
index f1ab1b940a74d6ccac278d910f90cecbe6d2b342..76e7d96853c2e46fd8e8667facb045c05cd1233d 100644
--- a/android_webview/browser/browser_view_renderer.cc
+++ b/android_webview/browser/browser_view_renderer.cc
@@ -6,6 +6,7 @@
#include "android_webview/browser/browser_view_renderer_client.h"
#include "android_webview/browser/shared_renderer_state.h"
+#include "android_webview/common/aw_switches.h"
#include "android_webview/public/browser/draw_gl.h"
#include "base/android/jni_android.h"
#include "base/auto_reset.h"
@@ -224,8 +225,11 @@ bool BrowserViewRenderer::OnDraw(jobject java_canvas,
if (clear_view_)
return false;
- if (is_hardware_canvas && attached_to_window_)
+ if (is_hardware_canvas && attached_to_window_ &&
+ !switches::ForceAuxiliaryBitmap()) {
return OnDrawHardware(java_canvas);
+ }
+
// Perform a software draw
return DrawSWInternal(java_canvas, clip);
}
« no previous file with comments | « no previous file | android_webview/common/aw_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698