| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_PLUGIN_COMMAND_BUFFER_STUB_H_ | 5 #ifndef CHROME_PLUGIN_COMMAND_BUFFER_STUB_H_ |
| 6 #define CHROME_PLUGIN_COMMAND_BUFFER_STUB_H_ | 6 #define CHROME_PLUGIN_COMMAND_BUFFER_STUB_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #if defined(ENABLE_GPU) | 9 #if defined(ENABLE_GPU) |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 class CommandBufferStub : public IPC::Channel::Listener, | 24 class CommandBufferStub : public IPC::Channel::Listener, |
| 25 public IPC::Message::Sender { | 25 public IPC::Message::Sender { |
| 26 public: | 26 public: |
| 27 CommandBufferStub(PluginChannel* channel, | 27 CommandBufferStub(PluginChannel* channel, |
| 28 int plugin_host_route_id, | 28 int plugin_host_route_id, |
| 29 gfx::PluginWindowHandle window); | 29 gfx::PluginWindowHandle window); |
| 30 | 30 |
| 31 virtual ~CommandBufferStub(); | 31 virtual ~CommandBufferStub(); |
| 32 | 32 |
| 33 // IPC::Channel::Listener implementation: | 33 // IPC::Channel::Listener implementation: |
| 34 virtual void OnMessageReceived(const IPC::Message& message); | 34 virtual bool OnMessageReceived(const IPC::Message& message); |
| 35 virtual void OnChannelError(); | 35 virtual void OnChannelError(); |
| 36 | 36 |
| 37 // IPC::Message::Sender implementation: | 37 // IPC::Message::Sender implementation: |
| 38 virtual bool Send(IPC::Message* msg); | 38 virtual bool Send(IPC::Message* msg); |
| 39 | 39 |
| 40 int route_id() const { return route_id_; } | 40 int route_id() const { return route_id_; } |
| 41 | 41 |
| 42 // Notify the client that it must repaint due to the window becoming invalid | 42 // Notify the client that it must repaint due to the window becoming invalid |
| 43 // or a lost context. | 43 // or a lost context. |
| 44 void NotifyRepaint(); | 44 void NotifyRepaint(); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 73 int plugin_host_route_id_; | 73 int plugin_host_route_id_; |
| 74 gfx::PluginWindowHandle window_; | 74 gfx::PluginWindowHandle window_; |
| 75 int route_id_; | 75 int route_id_; |
| 76 scoped_ptr<gpu::CommandBufferService> command_buffer_; | 76 scoped_ptr<gpu::CommandBufferService> command_buffer_; |
| 77 scoped_ptr<gpu::GPUProcessor> processor_; | 77 scoped_ptr<gpu::GPUProcessor> processor_; |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 #endif // ENABLE_GPU | 80 #endif // ENABLE_GPU |
| 81 | 81 |
| 82 #endif // CHROME_PLUGIN_COMMAND_BUFFER_STUB_H_ | 82 #endif // CHROME_PLUGIN_COMMAND_BUFFER_STUB_H_ |
| OLD | NEW |