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

Unified Diff: android_webview/native/java_browser_view_renderer_helper.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 | « android_webview/common/aw_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/java_browser_view_renderer_helper.cc
diff --git a/android_webview/native/java_browser_view_renderer_helper.cc b/android_webview/native/java_browser_view_renderer_helper.cc
index df4f433d3e51cf04b121d6e2c55893c8389aad7c..5e65dc79d7146112a3b90f3132105396ffe1171a 100644
--- a/android_webview/native/java_browser_view_renderer_helper.cc
+++ b/android_webview/native/java_browser_view_renderer_helper.cc
@@ -6,6 +6,7 @@
#include <android/bitmap.h>
+#include "android_webview/common/aw_switches.h"
#include "android_webview/public/browser/draw_sw.h"
#include "base/debug/trace_event.h"
#include "jni/JavaBrowserViewRendererHelper_jni.h"
@@ -26,7 +27,7 @@ AwDrawSWFunctionTable* g_sw_draw_functions = NULL;
class ScopedPixelAccess {
public:
ScopedPixelAccess(JNIEnv* env, jobject java_canvas) : pixels_(NULL) {
- if (g_sw_draw_functions)
+ if (g_sw_draw_functions && !switches::ForceAuxiliaryBitmap())
pixels_ = g_sw_draw_functions->access_pixels(env, java_canvas);
}
« no previous file with comments | « android_webview/common/aw_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698