summaryrefslogtreecommitdiff
path: root/chromium/content/browser/gpu/gpu_process_host.cc
diff options
context:
space:
mode:
authorPeter Varga <pvarga@inf.u-szeged.hu>2017-08-10 11:37:05 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-08-06 17:22:50 +0200
commitd4346ea9ffb985e9404d0935eebda9da802180c8 (patch)
tree73dd9096dff9d33049af1f9eee4d3a91d9364f15 /chromium/content/browser/gpu/gpu_process_host.cc
parent4c2c8055abf189676b12b17c92ef141af8a5e5f6 (diff)
downloadqtwebengine-chromium-d4346ea9ffb985e9404d0935eebda9da802180c8.tar.gz
Fix Renderer and GPU threads on windows
These threads are using the UI message loop on Windows per default. This won't work since the UI message loop is handled by Qt and the Renderer and GPU threads won't work with it properly. Force these threads for using the default message loop as they use it on Linux platform. Change-Id: I8b04ba9070912378cf1d13173ddff48e98f9a49b Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/content/browser/gpu/gpu_process_host.cc')
-rw-r--r--chromium/content/browser/gpu/gpu_process_host.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chromium/content/browser/gpu/gpu_process_host.cc b/chromium/content/browser/gpu/gpu_process_host.cc
index fcf8f3d0f82..c5ec9cbf71c 100644
--- a/chromium/content/browser/gpu/gpu_process_host.cc
+++ b/chromium/content/browser/gpu/gpu_process_host.cc
@@ -834,7 +834,7 @@ bool GpuProcessHost::Init() {
process_->GetInProcessMojoInvitation()),
gpu_preferences));
base::Thread::Options options;
-#if defined(OS_WIN) || defined(OS_MACOSX)
+#if (defined(OS_WIN) || defined(OS_MACOSX)) && !defined(TOOLKIT_QT)
// WGL needs to create its own window and pump messages on it.
options.message_pump_type = base::MessagePumpType::UI;
#endif