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 #include "ppapi/proxy/resource_creation_proxy.h" | 5 #include "ppapi/proxy/resource_creation_proxy.h" |
6 | 6 |
7 #include "ppapi/c/pp_errors.h" | 7 #include "ppapi/c/pp_errors.h" |
8 #include "ppapi/c/pp_size.h" | 8 #include "ppapi/c/pp_size.h" |
9 #include "ppapi/c/trusted/ppb_image_data_trusted.h" | 9 #include "ppapi/c/trusted/ppb_image_data_trusted.h" |
10 #include "ppapi/proxy/file_chooser_resource.h" | 10 #include "ppapi/proxy/file_chooser_resource.h" |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 init_to_zero); | 189 init_to_zero); |
190 } | 190 } |
191 | 191 |
192 PP_Resource ResourceCreationProxy::CreateGraphics2D(PP_Instance instance, | 192 PP_Resource ResourceCreationProxy::CreateGraphics2D(PP_Instance instance, |
193 const PP_Size& size, | 193 const PP_Size& size, |
194 PP_Bool is_always_opaque) { | 194 PP_Bool is_always_opaque) { |
195 return PPB_Graphics2D_Proxy::CreateProxyResource(instance, size, | 195 return PPB_Graphics2D_Proxy::CreateProxyResource(instance, size, |
196 is_always_opaque); | 196 is_always_opaque); |
197 } | 197 } |
198 | 198 |
| 199 PP_Resource ResourceCreationProxy::CreateGraphics3D( |
| 200 PP_Instance instance, |
| 201 PP_Resource share_context, |
| 202 const int32_t* attrib_list) { |
| 203 return PPB_Graphics3D_Proxy::CreateProxyResource( |
| 204 instance, share_context, attrib_list); |
| 205 } |
| 206 |
| 207 PP_Resource ResourceCreationProxy::CreateGraphics3DRaw( |
| 208 PP_Instance instance, |
| 209 PP_Resource share_context, |
| 210 const int32_t* attrib_list) { |
| 211 // Not proxied. The raw creation function is used only in the implementation |
| 212 // of the proxy on the host side. |
| 213 return 0; |
| 214 } |
| 215 |
199 #if !defined(OS_NACL) | 216 #if !defined(OS_NACL) |
200 PP_Resource ResourceCreationProxy::CreateAudioInput0_1( | 217 PP_Resource ResourceCreationProxy::CreateAudioInput0_1( |
201 PP_Instance instance, | 218 PP_Instance instance, |
202 PP_Resource config_id, | 219 PP_Resource config_id, |
203 PPB_AudioInput_Callback audio_input_callback, | 220 PPB_AudioInput_Callback audio_input_callback, |
204 void* user_data) { | 221 void* user_data) { |
205 return PPB_AudioInput_Proxy::CreateProxyResource0_1(instance, config_id, | 222 return PPB_AudioInput_Proxy::CreateProxyResource0_1(instance, config_id, |
206 audio_input_callback, | 223 audio_input_callback, |
207 user_data); | 224 user_data); |
208 } | 225 } |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 } | 283 } |
267 | 284 |
268 PP_Resource ResourceCreationProxy::CreateNetworkMonitor( | 285 PP_Resource ResourceCreationProxy::CreateNetworkMonitor( |
269 PP_Instance instance, | 286 PP_Instance instance, |
270 PPB_NetworkMonitor_Callback callback, | 287 PPB_NetworkMonitor_Callback callback, |
271 void* user_data) { | 288 void* user_data) { |
272 return PPB_NetworkMonitor_Private_Proxy::CreateProxyResource( | 289 return PPB_NetworkMonitor_Private_Proxy::CreateProxyResource( |
273 instance, callback, user_data); | 290 instance, callback, user_data); |
274 } | 291 } |
275 | 292 |
276 PP_Resource ResourceCreationProxy::CreateGraphics3D( | |
277 PP_Instance instance, | |
278 PP_Resource share_context, | |
279 const int32_t* attrib_list) { | |
280 return PPB_Graphics3D_Proxy::CreateProxyResource( | |
281 instance, share_context, attrib_list); | |
282 } | |
283 | |
284 PP_Resource ResourceCreationProxy::CreateGraphics3DRaw( | |
285 PP_Instance instance, | |
286 PP_Resource share_context, | |
287 const int32_t* attrib_list) { | |
288 // Not proxied. The raw creation function is used only in the implementation | |
289 // of the proxy on the host side. | |
290 return 0; | |
291 } | |
292 | |
293 PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance, | 293 PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance, |
294 PP_Bool vertical) { | 294 PP_Bool vertical) { |
295 NOTIMPLEMENTED(); // Not proxied yet. | 295 NOTIMPLEMENTED(); // Not proxied yet. |
296 return 0; | 296 return 0; |
297 } | 297 } |
298 | 298 |
299 PP_Resource ResourceCreationProxy::CreateTalk(PP_Instance instance) { | 299 PP_Resource ResourceCreationProxy::CreateTalk(PP_Instance instance) { |
300 return PPB_Talk_Private_Proxy::CreateProxyResource(instance); | 300 return PPB_Talk_Private_Proxy::CreateProxyResource(instance); |
301 } | 301 } |
302 | 302 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 bool ResourceCreationProxy::Send(IPC::Message* msg) { | 349 bool ResourceCreationProxy::Send(IPC::Message* msg) { |
350 return dispatcher()->Send(msg); | 350 return dispatcher()->Send(msg); |
351 } | 351 } |
352 | 352 |
353 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { | 353 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { |
354 return false; | 354 return false; |
355 } | 355 } |
356 | 356 |
357 } // namespace proxy | 357 } // namespace proxy |
358 } // namespace ppapi | 358 } // namespace ppapi |
OLD | NEW |