Index: content/renderer/render_thread_impl.cc |
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc |
index 4170eb015a85be8cacdf8eb6db9dfa51d67abd81..770c78fc5669ab812da8dad083648f8cc412fe6c 100644 |
--- a/content/renderer/render_thread_impl.cc |
+++ b/content/renderer/render_thread_impl.cc |
@@ -855,6 +855,11 @@ void RenderThreadImpl::Init( |
GetRemoteInterfaces()->GetInterface( |
mojo::GetProxy(&storage_partition_service_)); |
+ ChildProcess::current()->SetIOThreadAffinity(base::ThreadPriority::DISPLAY); |
+ ChildThreadImpl::current()->SetThreadAffinity( |
+ categorized_worker_pool_->background_worker_thread_id(), |
+ base::ThreadPriority::BACKGROUND); |
+ |
is_renderer_suspended_ = false; |
} |
@@ -1131,6 +1136,8 @@ void RenderThreadImpl::InitializeCompositorThread() { |
compositor_task_runner_->PostTask( |
FROM_HERE, |
base::Bind(base::IgnoreResult(&ThreadRestrictions::SetIOAllowed), false)); |
+ ChildThreadImpl::current()->SetThreadAffinity(compositor_thread_->threadId(), |
+ base::ThreadPriority::DISPLAY); |
SynchronousInputHandlerProxyClient* synchronous_input_handler_proxy_client = |
nullptr; |