diff options
Diffstat (limited to 'src')
m--------- | src/3rdparty | 0 | ||||
-rw-r--r-- | src/core/content_browser_client_qt.cpp | 7 | ||||
-rw-r--r-- | src/core/qtwebengine_extras.gypi | 1 | ||||
-rw-r--r-- | src/core/web_engine_context.cpp | 5 |
4 files changed, 12 insertions, 1 deletions
diff --git a/src/3rdparty b/src/3rdparty -Subproject a462a800bdf84baf6eca4fcc583684582d5419c +Subproject 1b5dc494c6547be044ab5fed57dc0419bba3f95 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); |