OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/proxy/host_resource.h" | 9 #include "ppapi/proxy/host_resource.h" |
10 #include "ppapi/proxy/interface_id.h" | 10 #include "ppapi/proxy/interface_id.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "ppapi/proxy/ppb_flash_net_connector_proxy.h" | 24 #include "ppapi/proxy/ppb_flash_net_connector_proxy.h" |
25 #include "ppapi/proxy/ppb_flash_tcp_socket_proxy.h" | 25 #include "ppapi/proxy/ppb_flash_tcp_socket_proxy.h" |
26 #include "ppapi/proxy/ppb_font_proxy.h" | 26 #include "ppapi/proxy/ppb_font_proxy.h" |
27 #include "ppapi/proxy/ppb_graphics_2d_proxy.h" | 27 #include "ppapi/proxy/ppb_graphics_2d_proxy.h" |
28 #include "ppapi/proxy/ppb_graphics_3d_proxy.h" | 28 #include "ppapi/proxy/ppb_graphics_3d_proxy.h" |
29 #include "ppapi/proxy/ppb_image_data_proxy.h" | 29 #include "ppapi/proxy/ppb_image_data_proxy.h" |
30 #include "ppapi/proxy/ppb_input_event_proxy.h" | 30 #include "ppapi/proxy/ppb_input_event_proxy.h" |
31 #include "ppapi/proxy/ppb_surface_3d_proxy.h" | 31 #include "ppapi/proxy/ppb_surface_3d_proxy.h" |
32 #include "ppapi/proxy/ppb_url_loader_proxy.h" | 32 #include "ppapi/proxy/ppb_url_loader_proxy.h" |
33 #include "ppapi/proxy/ppb_url_request_info_proxy.h" | 33 #include "ppapi/proxy/ppb_url_request_info_proxy.h" |
| 34 #include "ppapi/proxy/ppb_video_decoder_proxy.h" |
34 #include "ppapi/shared_impl/font_impl.h" | 35 #include "ppapi/shared_impl/font_impl.h" |
35 #include "ppapi/shared_impl/function_group_base.h" | 36 #include "ppapi/shared_impl/function_group_base.h" |
36 #include "ppapi/shared_impl/input_event_impl.h" | 37 #include "ppapi/shared_impl/input_event_impl.h" |
37 #include "ppapi/thunk/enter.h" | 38 #include "ppapi/thunk/enter.h" |
38 #include "ppapi/thunk/ppb_image_data_api.h" | 39 #include "ppapi/thunk/ppb_image_data_api.h" |
39 | 40 |
40 using ppapi::InputEventData; | 41 using ppapi::InputEventData; |
41 using ppapi::thunk::ResourceCreationAPI; | 42 using ppapi::thunk::ResourceCreationAPI; |
42 | 43 |
43 namespace pp { | 44 namespace pp { |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 } | 289 } |
289 | 290 |
290 PP_Resource ResourceCreationProxy::CreateURLRequestInfo(PP_Instance instance) { | 291 PP_Resource ResourceCreationProxy::CreateURLRequestInfo(PP_Instance instance) { |
291 return PPB_URLRequestInfo_Proxy::CreateProxyResource(instance); | 292 return PPB_URLRequestInfo_Proxy::CreateProxyResource(instance); |
292 } | 293 } |
293 | 294 |
294 PP_Resource ResourceCreationProxy::CreateVideoDecoder( | 295 PP_Resource ResourceCreationProxy::CreateVideoDecoder( |
295 PP_Instance instance, | 296 PP_Instance instance, |
296 PP_Resource context3d_id, | 297 PP_Resource context3d_id, |
297 const PP_VideoConfigElement* config) { | 298 const PP_VideoConfigElement* config) { |
298 NOTIMPLEMENTED(); | 299 return PPB_VideoDecoder_Proxy::CreateProxyResource( |
299 return 0; | 300 instance, context3d_id, config); |
300 } | 301 } |
301 | 302 |
302 PP_Resource ResourceCreationProxy::CreateVideoLayer( | 303 PP_Resource ResourceCreationProxy::CreateVideoLayer( |
303 PP_Instance instance, | 304 PP_Instance instance, |
304 PP_VideoLayerMode_Dev mode) { | 305 PP_VideoLayerMode_Dev mode) { |
305 NOTIMPLEMENTED(); | 306 NOTIMPLEMENTED(); |
306 return 0; | 307 return 0; |
307 } | 308 } |
308 | 309 |
309 PP_Resource ResourceCreationProxy::CreateWheelInputEvent( | 310 PP_Resource ResourceCreationProxy::CreateWheelInputEvent( |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 *result_image_handle = dispatcher_->ShareHandleWithRemote(ih, false); | 394 *result_image_handle = dispatcher_->ShareHandleWithRemote(ih, false); |
394 #else | 395 #else |
395 *result_image_handle = ImageData::HandleFromInt(handle); | 396 *result_image_handle = ImageData::HandleFromInt(handle); |
396 #endif | 397 #endif |
397 } | 398 } |
398 } | 399 } |
399 } | 400 } |
400 | 401 |
401 } // namespace proxy | 402 } // namespace proxy |
402 } // namespace pp | 403 } // namespace pp |
OLD | NEW |