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

Unified Diff: services/ui/gpu/gpu_service_mus.h

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/gpu/gpu_service_impl.cc ('k') | services/ui/gpu/gpu_service_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/gpu/gpu_service_mus.h
diff --git a/services/ui/gpu/gpu_service_mus.h b/services/ui/gpu/gpu_service_mus.h
index 59af4f5d5173d09d2fd17daabab70b2b95811d43..0b2a0125b0b5d320b502e0ffe5707e0f72a00ebd 100644
--- a/services/ui/gpu/gpu_service_mus.h
+++ b/services/ui/gpu/gpu_service_mus.h
@@ -26,10 +26,6 @@ template <typename T>
struct DefaultSingletonTraits;
}
-namespace IPC {
-struct ChannelHandle;
-}
-
namespace gpu {
class GpuChannelHost;
class GpuMemoryBufferFactory;
@@ -51,7 +47,7 @@ class GpuServiceMus : public gpu::GpuChannelManagerDelegate,
public gpu::GpuChannelHostFactory,
public base::NonThreadSafe {
public:
- typedef base::Callback<void(int client_id, const IPC::ChannelHandle&)>
+ typedef base::Callback<void(int client_id, mojo::ScopedMessagePipeHandle)>
EstablishGpuChannelCallback;
void EstablishGpuChannel(uint64_t client_tracing_id,
bool preempts,
@@ -122,14 +118,15 @@ class GpuServiceMus : public gpu::GpuChannelManagerDelegate,
~GpuServiceMus() override;
void Initialize();
- void InitializeOnGpuThread(IPC::ChannelHandle* channel_handle,
+ void InitializeOnGpuThread(mojo::ScopedMessagePipeHandle* channel_handle,
base::WaitableEvent* event);
- void EstablishGpuChannelOnGpuThread(int client_id,
- uint64_t client_tracing_id,
- bool preempts,
- bool allow_view_command_buffers,
- bool allow_real_time_streams,
- IPC::ChannelHandle* channel_handle);
+ void EstablishGpuChannelOnGpuThread(
+ int client_id,
+ uint64_t client_tracing_id,
+ bool preempts,
+ bool allow_view_command_buffers,
+ bool allow_real_time_streams,
+ mojo::ScopedMessagePipeHandle* channel_handle);
// The next client id.
int next_client_id_;
« no previous file with comments | « services/ui/gpu/gpu_service_impl.cc ('k') | services/ui/gpu/gpu_service_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698