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

Unified Diff: android_webview/common/aw_switches.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.h ('k') | android_webview/native/java_browser_view_renderer_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/common/aw_switches.cc
diff --git a/android_webview/common/aw_switches.cc b/android_webview/common/aw_switches.cc
index f30962368ed6252be251b4c55808845b4d8afe75..4a9737210ce2c676a46d095513c8f7b3b04a8bf5 100644
--- a/android_webview/common/aw_switches.cc
+++ b/android_webview/common/aw_switches.cc
@@ -3,10 +3,19 @@
// found in the LICENSE file.
#include "android_webview/common/aw_switches.h"
+#include "base/command_line.h"
namespace switches {
const char kDisableRecordDocumentWorkaround[] =
"disable-record-document-workaround";
+const char kForceAuxiliaryBitmap[] = "force-auxiliary-bitmap";
+
+bool ForceAuxiliaryBitmap() {
+ static bool force_auxiliary_bitmap =
+ CommandLine::ForCurrentProcess()->HasSwitch(kForceAuxiliaryBitmap);
+ return force_auxiliary_bitmap;
+}
+
} // namespace switches
« no previous file with comments | « android_webview/common/aw_switches.h ('k') | android_webview/native/java_browser_view_renderer_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698