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

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

Issue 2539893002: Mus: Implement GpuMain mojo interface (Closed)
Patch Set: Addressed Sadrul's comments Created 4 years 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 bdac226d811bca4d074f5391bc6e47c9dbbf9d42..0b359fb31a37c584ccfb7fb06553ad5fedbd23ff 100644
--- a/services/ui/ws/gpu_service_proxy.cc
+++ b/services/ui/ws/gpu_service_proxy.cc
@@ -31,11 +31,12 @@ GpuServiceProxy::GpuServiceProxy(GpuServiceProxyDelegate* delegate)
: delegate_(delegate),
next_client_id_(kInternalGpuChannelClientId + 1),
main_thread_task_runner_(base::ThreadTaskRunnerHandle::Get()) {
- gpu_main_.OnStart();
+ gpu_main_impl_ = base::MakeUnique<GpuMain>(GetProxy(&gpu_main_));
+ gpu_main_impl_->OnStart();
// TODO(sad): Once GPU process is split, this would look like:
- // connector->ConnectToInterface("gpu", &gpu_service_);
- gpu_main_.Create(GetProxy(&gpu_service_));
- gpu_service_->Initialize(
+ // connector->ConnectToInterface("gpu", &gpu_main_);
+ gpu_main_->CreateGpuService(
+ GetProxy(&gpu_service_),
base::Bind(&GpuServiceProxy::OnInitialized, base::Unretained(this)));
gpu_memory_buffer_manager_ = base::MakeUnique<MusGpuMemoryBufferManager>(
gpu_service_.get(), next_client_id_++);
@@ -51,7 +52,7 @@ void GpuServiceProxy::Add(mojom::GpuServiceRequest request) {
void GpuServiceProxy::CreateDisplayCompositor(
cc::mojom::DisplayCompositorRequest request,
cc::mojom::DisplayCompositorClientPtr client) {
- gpu_service_->CreateDisplayCompositor(std::move(request), std::move(client));
+ gpu_main_->CreateDisplayCompositor(std::move(request), std::move(client));
}
void GpuServiceProxy::OnInitialized(const gpu::GPUInfo& gpu_info) {
« 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