summaryrefslogtreecommitdiffstats
path: root/android_webview/lib
diff options
context:
space:
mode:
Diffstat (limited to 'android_webview/lib')
-rw-r--r--android_webview/lib/DEPS1
-rw-r--r--android_webview/lib/main/aw_main_delegate.cc10
2 files changed, 11 insertions, 0 deletions
diff --git a/android_webview/lib/DEPS b/android_webview/lib/DEPS
index fe7bb13..f3505d7 100644
--- a/android_webview/lib/DEPS
+++ b/android_webview/lib/DEPS
@@ -1,3 +1,4 @@
include_rules = [
+ "+cc/switches.h",
"+content/public",
]
diff --git a/android_webview/lib/main/aw_main_delegate.cc b/android_webview/lib/main/aw_main_delegate.cc
index 8b18910..4ad6937 100644
--- a/android_webview/lib/main/aw_main_delegate.cc
+++ b/android_webview/lib/main/aw_main_delegate.cc
@@ -11,6 +11,7 @@
#include "base/command_line.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
+#include "cc/switches.h"
#include "content/public/browser/browser_main_runner.h"
#include "content/public/common/content_switches.h"
@@ -29,6 +30,15 @@ bool AwMainDelegate::BasicStartupComplete(int* exit_code) {
// Set the command line to enable synchronous API compatibility.
command_line->AppendSwitch(switches::kEnableWebViewSynchronousAPIs);
+ // TODO(leandrogracia): enable with the CapturePicture API support.
+ if (false) {
+ // Enable impl-side painting in the compositor.
+ command_line->AppendSwitch(switches::kForceCompositingMode);
+ command_line->AppendSwitch(switches::kEnableThreadedCompositing);
+ command_line->AppendSwitch(switches::kEnableDeferredImageDecoding);
+ command_line->AppendSwitch(cc::switches::kEnableImplSidePainting);
+ }
+
return false;
}