From 1f124e50cde3250e11efaec306f2a07ace3185de Mon Sep 17 00:00:00 2001 From: Peter Varga Date: Fri, 16 May 2014 13:47:22 +0200 Subject: Windows: Use single process binary on Windows and fix GL context Change-Id: Iee7f3dc7fb9deba03e57a80ed48b74069490fe0d Reviewed-by: Andras Becsi --- src/core/content_browser_client_qt.cpp | 7 ++++++- src/core/qtwebengine_extras.gypi | 1 + src/core/web_engine_context.cpp | 5 +++++ 3 files changed, 12 insertions(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/content_browser_client_qt.cpp b/src/core/content_browser_client_qt.cpp index 200ebd35f..8a917c72f 100644 --- a/src/core/content_browser_client_qt.cpp +++ b/src/core/content_browser_client_qt.cpp @@ -222,7 +222,12 @@ public: m_handle = pni->nativeResourceForContext(QByteArrayLiteral("eglcontext"), qtContext); else if (platform == QStringLiteral("eglfs")) m_handle = pni->nativeResourceForContext(QByteArrayLiteral("eglcontext"), qtContext); - else { + else if (platform == QStringLiteral("windows")) { + if (gfx::GetGLImplementation() == gfx::kGLImplementationEGLGLES2) + m_handle = pni->nativeResourceForContext(QByteArrayLiteral("eglcontext"), qtContext); + else + qFatal("Only the EGLGLES2 implementation is supported on %s platform.", platform.toLatin1().constData()); + } else { qFatal("%s platform not yet supported", platform.toLatin1().constData()); // Add missing platforms once they work. Q_UNREACHABLE(); diff --git a/src/core/qtwebengine_extras.gypi b/src/core/qtwebengine_extras.gypi index a93d7b8e4..8cd2ff913 100644 --- a/src/core/qtwebengine_extras.gypi +++ b/src/core/qtwebengine_extras.gypi @@ -5,6 +5,7 @@ 'win_use_allocator_shim': 0, 'win_release_RuntimeLibrary': 2, 'win_debug_RuntimeLibrary': 3, + 'chrome_multiple_dll': 0, }, 'target_defaults': { # patterns used to exclude chromium files from the build when we have a drop-in replacement diff --git a/src/core/web_engine_context.cpp b/src/core/web_engine_context.cpp index ff433027e..4623b0aab 100644 --- a/src/core/web_engine_context.cpp +++ b/src/core/web_engine_context.cpp @@ -138,6 +138,11 @@ WebEngineContext::WebEngineContext() parsedCommandLine->AppendSwitch(switches::kEnableThreadedCompositing); parsedCommandLine->AppendSwitch(switches::kInProcessGPU); +#if defined(OS_WIN) + // FIXME: The renderer process should be fixed on windows. + parsedCommandLine->AppendSwitch(switches::kSingleProcess); +#endif + #if defined(QTWEBENGINE_MOBILE_SWITCHES) // Inspired from the Android port's default switches parsedCommandLine->AppendSwitch(switches::kEnableOverlayScrollbars); -- cgit v1.2.3