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_RESOURCE_CREATION_PROXY_H_ | 5 #ifndef PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ |
6 #define PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ | 6 #define PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "ipc/ipc_channel.h" | 11 #include "ipc/ipc_channel.h" |
12 #include "ppapi/c/pp_bool.h" | 12 #include "ppapi/c/pp_bool.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/serialized_structs.h" | 15 #include "ppapi/proxy/serialized_structs.h" |
16 #include "ppapi/thunk/resource_creation_api.h" | 16 #include "ppapi/thunk/resource_creation_api.h" |
17 | 17 |
18 struct PP_Size; | 18 struct PP_Size; |
19 | 19 |
20 namespace ppapi { | 20 namespace ppapi { |
21 | 21 |
22 class HostResource; | 22 class HostResource; |
| 23 struct CommandBufferIDPair; |
23 | 24 |
24 namespace proxy { | 25 namespace proxy { |
25 | 26 |
26 struct Connection; | 27 struct Connection; |
27 class Dispatcher; | 28 class Dispatcher; |
28 | 29 |
29 class ResourceCreationProxy : public InterfaceProxy, | 30 class ResourceCreationProxy : public InterfaceProxy, |
30 public thunk::ResourceCreationAPI { | 31 public thunk::ResourceCreationAPI { |
31 public: | 32 public: |
32 explicit ResourceCreationProxy(Dispatcher* dispatcher); | 33 explicit ResourceCreationProxy(Dispatcher* dispatcher); |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 const PP_Size* size, | 115 const PP_Size* size, |
115 PP_Bool is_always_opaque) override; | 116 PP_Bool is_always_opaque) override; |
116 PP_Resource CreateGraphics3D(PP_Instance instance, | 117 PP_Resource CreateGraphics3D(PP_Instance instance, |
117 PP_Resource share_context, | 118 PP_Resource share_context, |
118 const int32_t* attrib_list) override; | 119 const int32_t* attrib_list) override; |
119 PP_Resource CreateGraphics3DRaw( | 120 PP_Resource CreateGraphics3DRaw( |
120 PP_Instance instance, | 121 PP_Instance instance, |
121 PP_Resource share_context, | 122 PP_Resource share_context, |
122 const int32_t* attrib_list, | 123 const int32_t* attrib_list, |
123 gpu::Capabilities* capabilities, | 124 gpu::Capabilities* capabilities, |
124 base::SharedMemoryHandle* shared_state) override; | 125 base::SharedMemoryHandle* shared_state, |
| 126 ppapi::CommandBufferIDPair* id_pair) override; |
125 PP_Resource CreateHostResolver(PP_Instance instance) override; | 127 PP_Resource CreateHostResolver(PP_Instance instance) override; |
126 PP_Resource CreateHostResolverPrivate(PP_Instance instance) override; | 128 PP_Resource CreateHostResolverPrivate(PP_Instance instance) override; |
127 PP_Resource CreateImageData(PP_Instance instance, | 129 PP_Resource CreateImageData(PP_Instance instance, |
128 PP_ImageDataFormat format, | 130 PP_ImageDataFormat format, |
129 const PP_Size* size, | 131 const PP_Size* size, |
130 PP_Bool init_to_zero) override; | 132 PP_Bool init_to_zero) override; |
131 PP_Resource CreateImageDataSimple(PP_Instance instance, | 133 PP_Resource CreateImageDataSimple(PP_Instance instance, |
132 PP_ImageDataFormat format, | 134 PP_ImageDataFormat format, |
133 const PP_Size* size, | 135 const PP_Size* size, |
134 PP_Bool init_to_zero) override; | 136 PP_Bool init_to_zero) override; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 | 187 |
186 private: | 188 private: |
187 Connection GetConnection(); | 189 Connection GetConnection(); |
188 DISALLOW_COPY_AND_ASSIGN(ResourceCreationProxy); | 190 DISALLOW_COPY_AND_ASSIGN(ResourceCreationProxy); |
189 }; | 191 }; |
190 | 192 |
191 } // namespace proxy | 193 } // namespace proxy |
192 } // namespace ppapi | 194 } // namespace ppapi |
193 | 195 |
194 #endif // PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ | 196 #endif // PPAPI_PROXY_RESOURCE_CREATION_PROXY_H_ |
OLD | NEW |