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

Unified Diff: services/ui/public/cpp/gpu_service.cc

Issue 2247183005: services/ui: Get rid of IPC::ChannelHandle type converter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix review issues 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
« no previous file with comments | « services/ui/public/cpp/gpu_service.h ('k') | services/ui/public/interfaces/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/gpu_service.cc
diff --git a/services/ui/public/cpp/gpu_service.cc b/services/ui/public/cpp/gpu_service.cc
index 6c70440f940189eca61194151bf4c52152597284..a9c9b4d2b0b2cba4202a277cfb8b5a124a86b110 100644
--- a/services/ui/public/cpp/gpu_service.cc
+++ b/services/ui/public/cpp/gpu_service.cc
@@ -151,7 +151,7 @@ void GpuService::EstablishGpuChannelOnMainThreadSyncLocked() {
DCHECK(!gpu_service_);
int client_id = 0;
- mojom::ChannelHandlePtr channel_handle;
+ mojo::ScopedMessagePipeHandle channel_handle;
gpu::GPUInfo gpu_info;
connector_->ConnectToInterface("mojo:ui", &gpu_service_);
{
@@ -172,7 +172,7 @@ void GpuService::EstablishGpuChannelOnMainThreadSyncLocked() {
void GpuService::EstablishGpuChannelOnMainThreadDone(
bool locked,
int client_id,
- mojom::ChannelHandlePtr channel_handle,
+ mojo::ScopedMessagePipeHandle channel_handle,
const gpu::GPUInfo& gpu_info) {
DCHECK(IsMainThread());
scoped_refptr<gpu::GpuChannelHost> gpu_channel;
@@ -180,7 +180,7 @@ void GpuService::EstablishGpuChannelOnMainThreadDone(
// TODO(penghuang): Get the real gpu info from mus.
gpu_channel = gpu::GpuChannelHost::Create(
this, client_id, gpu::GPUInfo(),
- channel_handle.To<IPC::ChannelHandle>(), &shutdown_event_,
+ IPC::ChannelHandle(channel_handle.release()), &shutdown_event_,
gpu_memory_buffer_manager_.get());
}
« no previous file with comments | « services/ui/public/cpp/gpu_service.h ('k') | services/ui/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698