summaryrefslogtreecommitdiffstats
path: root/android_webview/lib/main/aw_main_delegate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'android_webview/lib/main/aw_main_delegate.cc')
-rw-r--r--android_webview/lib/main/aw_main_delegate.cc10
1 files changed, 10 insertions, 0 deletions
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;
}