OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ |
6 #define PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/shared_memory.h" | 10 #include "base/shared_memory.h" |
11 #include "gpu/command_buffer/common/command_buffer.h" | 11 #include "gpu/command_buffer/common/command_buffer.h" |
12 #include "ppapi/c/pp_graphics_3d.h" | 12 #include "ppapi/c/pp_graphics_3d.h" |
13 #include "ppapi/c/pp_instance.h" | 13 #include "ppapi/c/pp_instance.h" |
14 #include "ppapi/proxy/interface_proxy.h" | 14 #include "ppapi/proxy/interface_proxy.h" |
15 #include "ppapi/proxy/proxy_completion_callback_factory.h" | 15 #include "ppapi/proxy/proxy_completion_callback_factory.h" |
| 16 #include "ppapi/proxy/serialized_structs.h" |
16 #include "ppapi/shared_impl/ppb_graphics_3d_shared.h" | 17 #include "ppapi/shared_impl/ppb_graphics_3d_shared.h" |
17 #include "ppapi/shared_impl/resource.h" | 18 #include "ppapi/shared_impl/resource.h" |
18 #include "ppapi/utility/completion_callback_factory.h" | 19 #include "ppapi/utility/completion_callback_factory.h" |
19 | 20 |
20 namespace ppapi { | 21 namespace ppapi { |
21 | 22 |
22 class HostResource; | 23 class HostResource; |
23 | 24 |
24 namespace proxy { | 25 namespace proxy { |
25 | 26 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 bool* success); | 90 bool* success); |
90 void OnMsgAsyncFlush(const HostResource& context, | 91 void OnMsgAsyncFlush(const HostResource& context, |
91 int32 put_offset); | 92 int32 put_offset); |
92 void OnMsgCreateTransferBuffer(const HostResource& context, | 93 void OnMsgCreateTransferBuffer(const HostResource& context, |
93 int32 size, | 94 int32 size, |
94 int32* id); | 95 int32* id); |
95 void OnMsgDestroyTransferBuffer(const HostResource& context, | 96 void OnMsgDestroyTransferBuffer(const HostResource& context, |
96 int32 id); | 97 int32 id); |
97 void OnMsgGetTransferBuffer(const HostResource& context, | 98 void OnMsgGetTransferBuffer(const HostResource& context, |
98 int32 id, | 99 int32 id, |
99 base::SharedMemoryHandle* transfer_buffer, | 100 ppapi::proxy::SerializedHandle* transfer_buffer); |
100 uint32* size); | |
101 void OnMsgSwapBuffers(const HostResource& context); | 101 void OnMsgSwapBuffers(const HostResource& context); |
102 // Renderer->plugin message handlers. | 102 // Renderer->plugin message handlers. |
103 void OnMsgSwapBuffersACK(const HostResource& context, | 103 void OnMsgSwapBuffersACK(const HostResource& context, |
104 int32_t pp_error); | 104 int32_t pp_error); |
105 | 105 |
106 void SendSwapBuffersACKToPlugin(int32_t result, | 106 void SendSwapBuffersACKToPlugin(int32_t result, |
107 const HostResource& context); | 107 const HostResource& context); |
108 | 108 |
109 ProxyCompletionCallbackFactory<PPB_Graphics3D_Proxy> callback_factory_; | 109 ProxyCompletionCallbackFactory<PPB_Graphics3D_Proxy> callback_factory_; |
110 | 110 |
111 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy); | 111 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy); |
112 }; | 112 }; |
113 | 113 |
114 } // namespace proxy | 114 } // namespace proxy |
115 } // namespace ppapi | 115 } // namespace ppapi |
116 | 116 |
117 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ | 117 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ |
118 | 118 |
OLD | NEW |