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_capture_proxy.h" |
34 #include "ppapi/proxy/ppb_video_decoder_proxy.h" | 35 #include "ppapi/proxy/ppb_video_decoder_proxy.h" |
35 #include "ppapi/shared_impl/font_impl.h" | 36 #include "ppapi/shared_impl/font_impl.h" |
36 #include "ppapi/shared_impl/function_group_base.h" | 37 #include "ppapi/shared_impl/function_group_base.h" |
37 #include "ppapi/shared_impl/input_event_impl.h" | 38 #include "ppapi/shared_impl/input_event_impl.h" |
38 #include "ppapi/thunk/enter.h" | 39 #include "ppapi/thunk/enter.h" |
39 #include "ppapi/thunk/ppb_image_data_api.h" | 40 #include "ppapi/thunk/ppb_image_data_api.h" |
40 | 41 |
41 using ppapi::InputEventData; | 42 using ppapi::InputEventData; |
42 using ppapi::thunk::ResourceCreationAPI; | 43 using ppapi::thunk::ResourceCreationAPI; |
43 | 44 |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 | 287 |
287 PP_Resource ResourceCreationProxy::CreateURLLoader(PP_Instance instance) { | 288 PP_Resource ResourceCreationProxy::CreateURLLoader(PP_Instance instance) { |
288 return PPB_URLLoader_Proxy::CreateProxyResource(instance); | 289 return PPB_URLLoader_Proxy::CreateProxyResource(instance); |
289 } | 290 } |
290 | 291 |
291 PP_Resource ResourceCreationProxy::CreateURLRequestInfo(PP_Instance instance) { | 292 PP_Resource ResourceCreationProxy::CreateURLRequestInfo(PP_Instance instance) { |
292 return PPB_URLRequestInfo_Proxy::CreateProxyResource(instance); | 293 return PPB_URLRequestInfo_Proxy::CreateProxyResource(instance); |
293 } | 294 } |
294 | 295 |
295 PP_Resource ResourceCreationProxy::CreateVideoCapture(PP_Instance instance) { | 296 PP_Resource ResourceCreationProxy::CreateVideoCapture(PP_Instance instance) { |
296 NOTIMPLEMENTED(); | 297 return PPB_VideoCapture_Proxy::CreateProxyResource(instance); |
297 return 0; | |
298 } | 298 } |
299 | 299 |
300 PP_Resource ResourceCreationProxy::CreateVideoDecoder( | 300 PP_Resource ResourceCreationProxy::CreateVideoDecoder( |
301 PP_Instance instance, | 301 PP_Instance instance, |
302 PP_Resource context3d_id, | 302 PP_Resource context3d_id, |
303 const PP_VideoConfigElement* config) { | 303 const PP_VideoConfigElement* config) { |
304 return PPB_VideoDecoder_Proxy::CreateProxyResource( | 304 return PPB_VideoDecoder_Proxy::CreateProxyResource( |
305 instance, context3d_id, config); | 305 instance, context3d_id, config); |
306 } | 306 } |
307 | 307 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 *result_image_handle = dispatcher_->ShareHandleWithRemote(ih, false); | 399 *result_image_handle = dispatcher_->ShareHandleWithRemote(ih, false); |
400 #else | 400 #else |
401 *result_image_handle = ImageData::HandleFromInt(handle); | 401 *result_image_handle = ImageData::HandleFromInt(handle); |
402 #endif | 402 #endif |
403 } | 403 } |
404 } | 404 } |
405 } | 405 } |
406 | 406 |
407 } // namespace proxy | 407 } // namespace proxy |
408 } // namespace pp | 408 } // namespace pp |
OLD | NEW |