| 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 27 matching lines...) Expand all Loading... |
| 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(); |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 // Message handlers: | 47 // Message handlers: |
| 48 void OnInitialize(int32 size, base::SharedMemoryHandle* ring_buffer); | 48 void OnInitialize(base::SharedMemoryHandle ring_buffer, |
| 49 int32 size, |
| 50 bool* result); |
| 49 void OnGetState(gpu::CommandBuffer::State* state); | 51 void OnGetState(gpu::CommandBuffer::State* state); |
| 50 void OnAsyncGetState(); | 52 void OnAsyncGetState(); |
| 51 void OnFlush(int32 put_offset, gpu::CommandBuffer::State* state); | 53 void OnFlush(int32 put_offset, gpu::CommandBuffer::State* state); |
| 52 void OnAsyncFlush(int32 put_offset); | 54 void OnAsyncFlush(int32 put_offset); |
| 53 void OnCreateTransferBuffer(int32 size, int32* id); | 55 void OnCreateTransferBuffer(int32 size, int32* id); |
| 54 void OnDestroyTransferBuffer(int32 id); | 56 void OnDestroyTransferBuffer(int32 id); |
| 55 void OnGetTransferBuffer(int32 id, | 57 void OnGetTransferBuffer(int32 id, |
| 56 base::SharedMemoryHandle* transfer_buffer, | 58 base::SharedMemoryHandle* transfer_buffer, |
| 57 uint32* size); | 59 uint32* size); |
| 58 | 60 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 73 int plugin_host_route_id_; | 75 int plugin_host_route_id_; |
| 74 gfx::PluginWindowHandle window_; | 76 gfx::PluginWindowHandle window_; |
| 75 int route_id_; | 77 int route_id_; |
| 76 scoped_ptr<gpu::CommandBufferService> command_buffer_; | 78 scoped_ptr<gpu::CommandBufferService> command_buffer_; |
| 77 scoped_ptr<gpu::GPUProcessor> processor_; | 79 scoped_ptr<gpu::GPUProcessor> processor_; |
| 78 }; | 80 }; |
| 79 | 81 |
| 80 #endif // ENABLE_GPU | 82 #endif // ENABLE_GPU |
| 81 | 83 |
| 82 #endif // CHROME_PLUGIN_COMMAND_BUFFER_STUB_H_ | 84 #endif // CHROME_PLUGIN_COMMAND_BUFFER_STUB_H_ |
| OLD | NEW |