From 355ef66c35350c04147a0b05f3116dca7477aa2c Mon Sep 17 00:00:00 2001 From: Andras Becsi Date: Wed, 4 Dec 2013 13:53:10 +0100 Subject: Add Android specific build settings and command line switches Although this is an unsupported platfrom for QtWebEngine it is needed for Boot2Qt-Android and can live upstream. Change-Id: I21fea1fd00c1206e3b56373349b30df5ee121fda Reviewed-by: Jocelyn Turcotte --- src/core/web_engine_context.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/core/web_engine_context.cpp') diff --git a/src/core/web_engine_context.cpp b/src/core/web_engine_context.cpp index dbaa948bf..03da61643 100644 --- a/src/core/web_engine_context.cpp +++ b/src/core/web_engine_context.cpp @@ -122,6 +122,13 @@ WebEngineContext::WebEngineContext(WebContentsAdapterClient::RenderingMode rende parsedCommandLine->AppendSwitch(switches::kInProcessGPU); } +#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); +#endif + // Tell Chromium to use EGL instead of GLX if the Qt xcb plugin also does. if (qApp->platformName() == QStringLiteral("xcb") && qApp->platformNativeInterface()->nativeResourceForWindow(QByteArrayLiteral("egldisplay"), 0)) parsedCommandLine->AppendSwitchASCII(switches::kUseGL, gfx::kGLImplementationEGLName); -- cgit v1.2.3