| 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/interface_id.h" | 9 #include "ppapi/proxy/interface_id.h" |
| 10 #include "ppapi/proxy/plugin_dispatcher.h" | 10 #include "ppapi/proxy/plugin_dispatcher.h" |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 HostResource::MakeInstanceOnly(instance), data))->GetReference(); | 296 HostResource::MakeInstanceOnly(instance), data))->GetReference(); |
| 297 } | 297 } |
| 298 | 298 |
| 299 PP_Resource ResourceCreationProxy::CreateVideoCapture(PP_Instance instance) { | 299 PP_Resource ResourceCreationProxy::CreateVideoCapture(PP_Instance instance) { |
| 300 return PPB_VideoCapture_Proxy::CreateProxyResource(instance); | 300 return PPB_VideoCapture_Proxy::CreateProxyResource(instance); |
| 301 } | 301 } |
| 302 | 302 |
| 303 PP_Resource ResourceCreationProxy::CreateVideoDecoder( | 303 PP_Resource ResourceCreationProxy::CreateVideoDecoder( |
| 304 PP_Instance instance, | 304 PP_Instance instance, |
| 305 PP_Resource context3d_id, | 305 PP_Resource context3d_id, |
| 306 const PP_VideoConfigElement* config) { | 306 PP_VideoDecoder_Profile profile) { |
| 307 return PPB_VideoDecoder_Proxy::CreateProxyResource( | 307 return PPB_VideoDecoder_Proxy::CreateProxyResource( |
| 308 instance, context3d_id, config); | 308 instance, context3d_id, profile); |
| 309 } | 309 } |
| 310 | 310 |
| 311 PP_Resource ResourceCreationProxy::CreateVideoLayer( | 311 PP_Resource ResourceCreationProxy::CreateVideoLayer( |
| 312 PP_Instance instance, | 312 PP_Instance instance, |
| 313 PP_VideoLayerMode_Dev mode) { | 313 PP_VideoLayerMode_Dev mode) { |
| 314 NOTIMPLEMENTED(); | 314 NOTIMPLEMENTED(); |
| 315 return 0; | 315 return 0; |
| 316 } | 316 } |
| 317 | 317 |
| 318 PP_Resource ResourceCreationProxy::CreateWheelInputEvent( | 318 PP_Resource ResourceCreationProxy::CreateWheelInputEvent( |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 *result_image_handle = dispatcher_->ShareHandleWithRemote(ih, false); | 403 *result_image_handle = dispatcher_->ShareHandleWithRemote(ih, false); |
| 404 #else | 404 #else |
| 405 *result_image_handle = ImageData::HandleFromInt(handle); | 405 *result_image_handle = ImageData::HandleFromInt(handle); |
| 406 #endif | 406 #endif |
| 407 } | 407 } |
| 408 } | 408 } |
| 409 } | 409 } |
| 410 | 410 |
| 411 } // namespace proxy | 411 } // namespace proxy |
| 412 } // namespace ppapi | 412 } // namespace ppapi |
| OLD | NEW |