diff options
Diffstat (limited to 'chrome/renderer/command_buffer_proxy.h')
-rw-r--r-- | chrome/renderer/command_buffer_proxy.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/chrome/renderer/command_buffer_proxy.h b/chrome/renderer/command_buffer_proxy.h index b425074..9b8e3f7 100644 --- a/chrome/renderer/command_buffer_proxy.h +++ b/chrome/renderer/command_buffer_proxy.h @@ -32,7 +32,8 @@ class Task; // Client side proxy that forwards messages synchronously to a // CommandBufferStub. class CommandBufferProxy : public gpu::CommandBuffer, - public IPC::Channel::Listener { + public IPC::Channel::Listener, + public IPC::Message::Sender { public: CommandBufferProxy(IPC::Channel::Sender* channel, int route_id); virtual ~CommandBufferProxy(); @@ -41,6 +42,9 @@ class CommandBufferProxy : public gpu::CommandBuffer, virtual void OnMessageReceived(const IPC::Message& message); virtual void OnChannelError(); + // IPC::Message::Sender implementation: + virtual bool Send(IPC::Message* msg); + int route_id() const { return route_id_; } // CommandBuffer implementation: @@ -85,12 +89,6 @@ class CommandBufferProxy : public gpu::CommandBuffer, void AsyncFlush(int32 put_offset, Task* completion_task); private: - - // Send an IPC message over the GPU channel. This is private to fully - // encapsulate the channel; all callers of this function must explicitly - // verify that the context has not been lost. - bool Send(IPC::Message* msg); - // Message handlers: void OnUpdateState(gpu::CommandBuffer::State state); void OnNotifyRepaint(); |