diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-05-10 08:57:27 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-05-10 13:49:04 +0200 |
commit | 349db5edcb67574f646eca7b336b9571b9777816 (patch) | |
tree | 01c2fb0943117d2cae1a2eb718875ef6af6fa243 | |
parent | 5d41d39b82acb3e2da597df0588fb906e212d608 (diff) | |
download | qtwebengine-349db5edcb67574f646eca7b336b9571b9777816.tar.gz |
Follow InProcessGpuThread::Init() on thread priority
If they use NORMAL, then we should too.
Change-Id: I252b4606c692ba483434c126fcda3a7484f399e2
Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
-rw-r--r-- | src/core/web_engine_context_threads.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/web_engine_context_threads.cpp b/src/core/web_engine_context_threads.cpp index 5f9e345f7..5aa4c3e1e 100644 --- a/src/core/web_engine_context_threads.cpp +++ b/src/core/web_engine_context_threads.cpp @@ -84,7 +84,7 @@ struct GpuThreadControllerQt : content::GpuThreadController if (s_gpuProcessDestroyed) return; - s_gpuProcess = std::make_unique<content::GpuProcess>(base::ThreadPriority::DISPLAY); + s_gpuProcess = std::make_unique<content::GpuProcess>(base::ThreadPriority::NORMAL); auto gpuInit = std::make_unique<gpu::GpuInit>(); gpuInit->InitializeInProcess(base::CommandLine::ForCurrentProcess(), gpuPreferences); auto childThread = new content::GpuChildThread(params, std::move(gpuInit)); |