Index: content/common/gpu/gpu_channel_manager.h |
diff --git a/content/common/gpu/gpu_channel_manager.h b/content/common/gpu/gpu_channel_manager.h |
index dbda9b4f5ac762d1df8c2b743075f16d6e742d0a..28b62b87978a6e61c42ba77309526e78881d3e60 100644 |
--- a/content/common/gpu/gpu_channel_manager.h |
+++ b/content/common/gpu/gpu_channel_manager.h |
@@ -58,6 +58,7 @@ struct GPUCreateCommandBufferConfig; |
struct GpuMsg_EstablishChannel_Params; |
namespace content { |
+class GpuChannelManagerDelegate; |
class GpuChannel; |
class GpuMemoryBufferFactory; |
class GpuWatchdog; |
@@ -68,7 +69,8 @@ class GpuWatchdog; |
class CONTENT_EXPORT GpuChannelManager : public IPC::Listener, |
public IPC::Sender { |
public: |
- GpuChannelManager(IPC::SyncChannel* channel, |
+ GpuChannelManager(GpuChannelManagerDelegate* delegate, |
+ IPC::SyncChannel* channel, |
GpuWatchdog* watchdog, |
base::SingleThreadTaskRunner* task_runner, |
base::SingleThreadTaskRunner* io_task_runner, |
@@ -77,6 +79,9 @@ class CONTENT_EXPORT GpuChannelManager : public IPC::Listener, |
GpuMemoryBufferFactory* gpu_memory_buffer_factory); |
~GpuChannelManager() override; |
+ GpuChannelManagerDelegate* delegate() { return delegate_; } |
+ const GpuChannelManagerDelegate* delegate() const { return delegate_; } |
+ |
// Remove the channel for a particular renderer. |
void RemoveChannel(int client_id); |
@@ -171,6 +176,8 @@ class CONTENT_EXPORT GpuChannelManager : public IPC::Listener, |
#endif |
void OnLoseAllContexts(); |
+ GpuChannelManagerDelegate* const delegate_; |
+ |
// Used to send and receive IPC messages from the browser process. |
IPC::SyncChannel* const channel_; |
IPC::MessageRouter router_; |