Commit a935c65a by Etienne Bergeron Committed by Commit Bot

Fix delegate Worker Thread Pool creation

This error was introduced while fixing nits in the previous CL. The Delegate Pool was not created at all and always fallback to the Async thread pool instead. Bug: chromium:1091259 Change-Id: I5036836b5d792372636f21e936a03906eb587f67 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2262573Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Etienne Bergeron <etienneb@chromium.org>
parent 1be395fe
...@@ -326,8 +326,8 @@ std::shared_ptr<WorkerThreadPool> WorkerThreadPool::Create(bool multithreaded) ...@@ -326,8 +326,8 @@ std::shared_ptr<WorkerThreadPool> WorkerThreadPool::Create(bool multithreaded)
pool = std::shared_ptr<WorkerThreadPool>(new DelegateWorkerPool()); pool = std::shared_ptr<WorkerThreadPool>(new DelegateWorkerPool());
} }
#endif #endif
#if (!pool && ANGLE_STD_ASYNC_WORKERS == ANGLE_ENABLED) #if (ANGLE_STD_ASYNC_WORKERS == ANGLE_ENABLED)
if (multithreaded) if (!pool && multithreaded)
{ {
pool = std::shared_ptr<WorkerThreadPool>( pool = std::shared_ptr<WorkerThreadPool>(
new AsyncWorkerPool(std::thread::hardware_concurrency())); new AsyncWorkerPool(std::thread::hardware_concurrency()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment