Force software draws in AOSP
Hardware acceleration in chromium m37+ no longer works with android
Kitkat, so force disable hardware acceleration. This is for AOSP only
until L is open sourced.
Change-Id: I95ad29492d868fd5a9772fce085b2a0302bf2388
diff --git a/chromium/java/com/android/webview/chromium/WebViewChromiumFactoryProvider.java b/chromium/java/com/android/webview/chromium/WebViewChromiumFactoryProvider.java
index 5061ff2..ed3e7fc 100644
--- a/chromium/java/com/android/webview/chromium/WebViewChromiumFactoryProvider.java
+++ b/chromium/java/com/android/webview/chromium/WebViewChromiumFactoryProvider.java
@@ -152,6 +152,11 @@
}
CommandLine cl = CommandLine.getInstance();
+
+ // Hardware acceleration in chromium m37+ no longer works with android Kitkat, so force
+ // disable hardware acceleration. This is for AOSP only until L is open sourced.
+ cl.appendSwitch("force-auxiliary-bitmap");
+
// TODO: currently in a relase build the DCHECKs only log. We either need to insall
// a report handler with SetLogReportHandler to make them assert, or else compile
// them out of the build altogether (b/8284203). Either way, so long they're