summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/command_buffer_proxy.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/command_buffer_proxy.h')
-rw-r--r--chrome/renderer/command_buffer_proxy.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/renderer/command_buffer_proxy.h b/chrome/renderer/command_buffer_proxy.h
index 990f6f3..5d72f2c 100644
--- a/chrome/renderer/command_buffer_proxy.h
+++ b/chrome/renderer/command_buffer_proxy.h
@@ -27,9 +27,7 @@ class CommandBufferProxy : public gpu::CommandBuffer,
public IPC::Channel::Listener,
public IPC::Message::Sender {
public:
- explicit CommandBufferProxy(
- PluginChannelHost* channel,
- int route_id);
+ CommandBufferProxy(IPC::Channel::Sender* channel, int route_id);
virtual ~CommandBufferProxy();
// IPC::Channel::Listener implementation:
@@ -39,6 +37,8 @@ class CommandBufferProxy : public gpu::CommandBuffer,
// IPC::Message::Sender implementation:
virtual bool Send(IPC::Message* msg);
+ int route_id() const { return route_id_; }
+
// CommandBuffer implementation:
virtual bool Initialize(int32 size);
virtual gpu::Buffer GetRingBuffer();
@@ -90,7 +90,7 @@ class CommandBufferProxy : public gpu::CommandBuffer,
// The last cached state received from the service.
State last_state_;
- scoped_refptr<PluginChannelHost> channel_;
+ IPC::Channel::Sender* channel_;
int route_id_;
// Pending asynchronous flush callbacks.