diff options
Diffstat (limited to 'content/common/gpu/client/gpu_channel_host.h')
-rw-r--r-- | content/common/gpu/client/gpu_channel_host.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/content/common/gpu/client/gpu_channel_host.h b/content/common/gpu/client/gpu_channel_host.h index 03466ea..52ffb38 100644 --- a/content/common/gpu/client/gpu_channel_host.h +++ b/content/common/gpu/client/gpu_channel_host.h @@ -93,6 +93,7 @@ class GpuChannelHost : public IPC::Sender, // Must be called on the main thread (as defined by the factory). static scoped_refptr<GpuChannelHost> Create( GpuChannelHostFactory* factory, + int gpu_host_id, const gpu::GPUInfo& gpu_info, const IPC::ChannelHandle& channel_handle); @@ -149,6 +150,7 @@ class GpuChannelHost : public IPC::Sender, void RemoveRoute(int route_id); GpuChannelHostFactory* factory() const { return factory_; } + int gpu_host_id() const { return gpu_host_id_; } // Returns a handle to the shared memory that can be sent via IPC to the // GPU process. The caller is responsible for ensuring it is closed. Returns @@ -177,6 +179,7 @@ class GpuChannelHost : public IPC::Sender, private: friend class base::RefCountedThreadSafe<GpuChannelHost>; GpuChannelHost(GpuChannelHostFactory* factory, + int gpu_host_id, const gpu::GPUInfo& gpu_info); virtual ~GpuChannelHost(); void Connect(const IPC::ChannelHandle& channel_handle); @@ -241,6 +244,7 @@ class GpuChannelHost : public IPC::Sender, // - |next_gpu_memory_buffer_id_|, atomic type // - |proxies_|, protected by |context_lock_| GpuChannelHostFactory* const factory_; + const int gpu_host_id_; const gpu::GPUInfo gpu_info_; |