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 | 7 |
8 #if defined(ENABLE_GPU) | 8 #if defined(ENABLE_GPU) |
9 | 9 |
10 #include "app/gfx/native_widget_types.h" | 10 #include "app/gfx/native_widget_types.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 private: | 37 private: |
38 // Message handlers: | 38 // Message handlers: |
39 void OnInitialize(int32 size, base::SharedMemoryHandle* ring_buffer); | 39 void OnInitialize(int32 size, base::SharedMemoryHandle* ring_buffer); |
40 void OnSyncOffsets(int32 put_offset, int32* get_offset); | 40 void OnSyncOffsets(int32 put_offset, int32* get_offset); |
41 void OnGetGetOffset(int32* get_offset); | 41 void OnGetGetOffset(int32* get_offset); |
42 void OnGetPutOffset(int32* put_offset); | 42 void OnGetPutOffset(int32* put_offset); |
43 void OnCreateTransferBuffer(int32 size, int32* id); | 43 void OnCreateTransferBuffer(int32 size, int32* id); |
44 void OnDestroyTransferBuffer(int32 id); | 44 void OnDestroyTransferBuffer(int32 id); |
45 void OnGetTransferBuffer(int32 id, | 45 void OnGetTransferBuffer(int32 id, |
46 base::SharedMemoryHandle* transfer_buffer); | 46 base::SharedMemoryHandle* transfer_buffer, |
| 47 size_t* size); |
47 void OnGetToken(int32* token); | 48 void OnGetToken(int32* token); |
48 void OnResetParseError(int32* parse_error); | 49 void OnResetParseError(int32* parse_error); |
49 void OnGetErrorStatus(bool* error_status); | 50 void OnGetErrorStatus(bool* error_status); |
50 | 51 |
51 scoped_refptr<PluginChannel> channel_; | 52 scoped_refptr<PluginChannel> channel_; |
52 gfx::NativeView view_; | 53 gfx::NativeView view_; |
53 int route_id_; | 54 int route_id_; |
54 scoped_ptr<gpu::CommandBufferService> command_buffer_; | 55 scoped_ptr<gpu::CommandBufferService> command_buffer_; |
55 scoped_refptr<gpu::GPUProcessor> processor_; | 56 scoped_refptr<gpu::GPUProcessor> processor_; |
56 }; | 57 }; |
57 | 58 |
58 #endif // ENABLE_GPU | 59 #endif // ENABLE_GPU |
59 | 60 |
60 #endif // CHROME_PLUGIN_COMMAND_BUFFER_STUB_H_ | 61 #endif // CHROME_PLUGIN_COMMAND_BUFFER_STUB_H_ |
OLD | NEW |