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

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

Issue 2342003003: [WIP] Mus: Pass the mojo connector to OzonePlatform::InitializeForGPU (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
« no previous file with comments | « services/ui/ws/gpu_service_proxy.h ('k') | services/ui/ws/window_server.h » ('j') | 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 e5b993d55072b80b3347152cd87239df51c06d2b..83c007279671d5f80f0565a2e784ebd26447beff 100644
--- a/services/ui/ws/gpu_service_proxy.cc
+++ b/services/ui/ws/gpu_service_proxy.cc
@@ -23,12 +23,14 @@ const uint64_t kInternalGpuChannelClientTracingId = 1;
} // namespace
-GpuServiceProxy::GpuServiceProxy(GpuServiceProxyDelegate* delegate)
+GpuServiceProxy::GpuServiceProxy(GpuServiceProxyDelegate* delegate,
+ shell::Connector* connector)
: delegate_(delegate),
next_client_id_(kInternalGpuChannelClientId),
main_thread_task_runner_(base::ThreadTaskRunnerHandle::Get()),
shutdown_event_(base::WaitableEvent::ResetPolicy::AUTOMATIC,
- base::WaitableEvent::InitialState::NOT_SIGNALED) {
+ base::WaitableEvent::InitialState::NOT_SIGNALED),
+ gpu_main_(connector) {
// TODO(sad): Once GPU process is split, this would look like:
// connector->ConnectToInterface("mojo:gpu", &gpu_service_);
gpu_main_.Add(GetProxy(&gpu_service_));
« no previous file with comments | « services/ui/ws/gpu_service_proxy.h ('k') | services/ui/ws/window_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698