Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(415)

Side by Side Diff: webkit/plugins/ppapi/resource_creation_impl.cc

Issue 10408003: Plumb extra_data() to VideoDecodeAccelerator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rev interface versino Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/plugins/ppapi/resource_creation_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "webkit/plugins/ppapi/resource_creation_impl.h" 5 #include "webkit/plugins/ppapi/resource_creation_impl.h"
6 6
7 #include "ppapi/c/pp_size.h" 7 #include "ppapi/c/pp_size.h"
8 #include "ppapi/shared_impl/ppb_audio_config_shared.h" 8 #include "ppapi/shared_impl/ppb_audio_config_shared.h"
9 #include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h" 9 #include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h"
10 #include "ppapi/shared_impl/ppb_input_event_shared.h" 10 #include "ppapi/shared_impl/ppb_input_event_shared.h"
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 scoped_refptr<PPB_VideoCapture_Impl> video_capture = 303 scoped_refptr<PPB_VideoCapture_Impl> video_capture =
304 new PPB_VideoCapture_Impl(instance); 304 new PPB_VideoCapture_Impl(instance);
305 if (!video_capture->Init()) 305 if (!video_capture->Init())
306 return 0; 306 return 0;
307 return video_capture->GetReference(); 307 return video_capture->GetReference();
308 } 308 }
309 309
310 PP_Resource ResourceCreationImpl::CreateVideoDecoder( 310 PP_Resource ResourceCreationImpl::CreateVideoDecoder(
311 PP_Instance instance, 311 PP_Instance instance,
312 PP_Resource graphics3d_id, 312 PP_Resource graphics3d_id,
313 PP_VideoDecoder_Profile profile) { 313 PP_VideoDecoder_Profile profile,
314 return PPB_VideoDecoder_Impl::Create(instance, graphics3d_id, profile); 314 const PP_Size& frame_size,
315 const uint8_t* extra_data,
316 uint32_t extra_data_size) {
317 std::vector<uint8_t> extra_data_vector;
318 if (extra_data)
319 extra_data_vector.assign(extra_data, extra_data + extra_data_size);
320
321 return PPB_VideoDecoder_Impl::Create(instance, graphics3d_id, profile,
322 gfx::Size(frame_size.width, frame_size.height), extra_data_vector);
315 } 323 }
316 324
317 PP_Resource ResourceCreationImpl::CreateVideoLayer(PP_Instance instance, 325 PP_Resource ResourceCreationImpl::CreateVideoLayer(PP_Instance instance,
318 PP_VideoLayerMode_Dev mode) { 326 PP_VideoLayerMode_Dev mode) {
319 return PPB_VideoLayer_Impl::Create(instance, mode); 327 return PPB_VideoLayer_Impl::Create(instance, mode);
320 } 328 }
321 329
322 PP_Resource ResourceCreationImpl::CreateWebSocket(PP_Instance instance) { 330 PP_Resource ResourceCreationImpl::CreateWebSocket(PP_Instance instance) {
323 return PPB_WebSocket_Impl::Create(instance); 331 return PPB_WebSocket_Impl::Create(instance);
324 } 332 }
(...skipping 17 matching lines...) Expand all
342 instance, data))->GetReference(); 350 instance, data))->GetReference();
343 } 351 }
344 352
345 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( 353 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate(
346 PP_Instance instance) { 354 PP_Instance instance) {
347 return PPB_X509Certificate_Private_Impl::CreateResource(instance); 355 return PPB_X509Certificate_Private_Impl::CreateResource(instance);
348 } 356 }
349 357
350 } // namespace ppapi 358 } // namespace ppapi
351 } // namespace webkit 359 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/resource_creation_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698