summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndras Becsi <andras.becsi@digia.com>2014-02-25 18:47:40 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-04 18:55:48 +0100
commitb02c5f1ef0be308dfe1905666512a14779705044 (patch)
tree0d3e5773fd55ff4dd0092a28e5569d59fea57d67 /src
parent1a15c1a9bd7ec912c3d4b40b85ed534adf568d0f (diff)
Add comman line switches needed for embedded Android
Change-Id: I870952054a11ec531e2d2a85ea1331cc67a5b8f3 Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/core/web_engine_context.cpp26
1 files changed, 22 insertions, 4 deletions
diff --git a/src/core/web_engine_context.cpp b/src/core/web_engine_context.cpp
index 3b0862128..87a28e9d7 100644
--- a/src/core/web_engine_context.cpp
+++ b/src/core/web_engine_context.cpp
@@ -43,10 +43,12 @@
#include <math.h>
+#include "base/base_switches.h"
#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/run_loop.h"
#include "base/threading/thread_restrictions.h"
+#include "cc/base/switches.h"
#include "content/public/app/content_main_runner.h"
#include "content/public/browser/browser_main_runner.h"
#include "content/public/common/content_paths.h"
@@ -60,6 +62,7 @@
#include "content/gpu/in_process_gpu_thread.h"
#include "ui/gl/gl_switches.h"
+#include "gpu/command_buffer/service/gpu_switches.h"
#include "webkit/common/user_agent/user_agent_util.h"
#include "content_browser_client_qt.h"
@@ -141,10 +144,25 @@ WebEngineContext::WebEngineContext(WebContentsAdapterClient::RenderingMode rende
}
#if defined(OS_ANDROID)
- // Force single-process mode for now.
- parsedCommandLine->AppendSwitch(switches::kSingleProcess);
- // This is needed so that we do not assert in single process mode.
- parsedCommandLine->AppendSwitch(switches::kEnableThreadedCompositing);
+ // Required on Android
+ parsedCommandLine->AppendSwitch(switches::kEnableOverlayScrollbars);
+ parsedCommandLine->AppendSwitch(switches::kEnableGestureTapHighlight);
+ parsedCommandLine->AppendSwitch(switches::kEnablePinch);
+ parsedCommandLine->AppendSwitch(switches::kEnableFixedLayout);
+ parsedCommandLine->AppendSwitch(switches::kEnableViewport);
+ parsedCommandLine->AppendSwitch(switches::kDisableAcceleratedVideo);
+ parsedCommandLine->AppendSwitch(switches::kDisableAudio);
+ parsedCommandLine->AppendSwitch(switches::kEnableAcceleratedOverflowScroll);
+ parsedCommandLine->AppendSwitch(switches::kEnableCompositingForFixedPosition);
+ parsedCommandLine->AppendSwitch(switches::kEnableAcceleratedScrollableFrames);
+ parsedCommandLine->AppendSwitch(switches::kEnableCompositedScrollingForFrames);
+ parsedCommandLine->AppendSwitch(switches::kForceCompositingMode);
+ parsedCommandLine->AppendSwitch(switches::kDisableGpuShaderDiskCache);
+ parsedCommandLine->AppendSwitch(switches::kDisable2dCanvasAntialiasing);
+ parsedCommandLine->AppendSwitch(switches::kEnableDeadlineScheduling);
+ parsedCommandLine->AppendSwitch(cc::switches::kDisableImplSidePainting);
+ parsedCommandLine->AppendSwitch(cc::switches::kDisableCompositedAntialiasing);
+ parsedCommandLine->AppendSwitch(cc::switches::kDisable4444Textures);
#endif
// Tell Chromium to use EGL instead of GLX if the Qt xcb plugin also does.