Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1149)

Unified Diff: content/renderer/render_thread_impl.cc

Issue 2249413004: services/ui: Allow injecting the IO thread task runner for gpu channel. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index a6ba224890db29727486a1ada531d87055d337d8..0ac4350be350739fcbc38cbd2439bafa0f43c295 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -637,6 +637,8 @@ void RenderThreadImpl::Init(
if (IsRunningInMash()) {
gpu_service_ =
ui::GpuService::Initialize(GetMojoShellConnection()->GetConnector());
+ gpu_service_->SetIOThreadTaskRunner(
+ ChildProcess::current()->io_task_runner());
}
#endif

Powered by Google App Engine
This is Rietveld 408576698