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

Unified Diff: services/ui/ws/gpu_service_proxy.cc

Issue 2366623002: services/ui: Initialize all of gpu in one thread. (Closed)
Patch Set: . Created 4 years, 3 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
« services/ui/gpu/gpu_main.cc ('K') | « services/ui/gpu/gpu_service_internal.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/gpu_service_proxy.cc
diff --git a/services/ui/ws/gpu_service_proxy.cc b/services/ui/ws/gpu_service_proxy.cc
index 721c1494d21c6befef11d2a8183cb14e188e42c4..b74db0239c6858467da55a321ba54fc1467e6800 100644
--- a/services/ui/ws/gpu_service_proxy.cc
+++ b/services/ui/ws/gpu_service_proxy.cc
@@ -29,9 +29,10 @@ GpuServiceProxy::GpuServiceProxy(GpuServiceProxyDelegate* delegate)
main_thread_task_runner_(base::ThreadTaskRunnerHandle::Get()),
shutdown_event_(base::WaitableEvent::ResetPolicy::AUTOMATIC,
base::WaitableEvent::InitialState::NOT_SIGNALED) {
+ gpu_main_.OnStart();
// TODO(sad): Once GPU process is split, this would look like:
// connector->ConnectToInterface("mojo:gpu", &gpu_service_);
- gpu_main_.Add(GetProxy(&gpu_service_));
+ gpu_main_.Create(GetProxy(&gpu_service_));
gpu_service_->Initialize(
base::Bind(&GpuServiceProxy::OnInitialized, base::Unretained(this)));
}
« services/ui/gpu/gpu_main.cc ('K') | « services/ui/gpu/gpu_service_internal.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698