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

Side by Side Diff: ppapi/cpp/private/content_decryptor_private.cc

Issue 26956002: Plumb support for audio sample formats. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix cast. Created 7 years, 1 month 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
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 "ppapi/cpp/private/content_decryptor_private.h" 5 #include "ppapi/cpp/private/content_decryptor_private.h"
6 6
7 #include <cstring> // memcpy 7 #include <cstring> // memcpy
8 8
9 #include "ppapi/c/ppb_var.h" 9 #include "ppapi/c/ppb_var.h"
10 #include "ppapi/c/private/ppb_content_decryptor_private.h" 10 #include "ppapi/c/private/ppb_content_decryptor_private.h"
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 if (has_interface<PPB_ContentDecryptor_Private>()) { 323 if (has_interface<PPB_ContentDecryptor_Private>()) {
324 get_interface<PPB_ContentDecryptor_Private>()->DeliverFrame( 324 get_interface<PPB_ContentDecryptor_Private>()->DeliverFrame(
325 associated_instance_.pp_instance(), 325 associated_instance_.pp_instance(),
326 decrypted_frame.pp_resource(), 326 decrypted_frame.pp_resource(),
327 &decrypted_frame_info); 327 &decrypted_frame_info);
328 } 328 }
329 } 329 }
330 330
331 void ContentDecryptor_Private::DeliverSamples( 331 void ContentDecryptor_Private::DeliverSamples(
332 pp::Buffer_Dev audio_frames, 332 pp::Buffer_Dev audio_frames,
333 const PP_DecryptedBlockInfo& decrypted_block_info) { 333 const PP_DecryptedSampleInfo& decrypted_sample_info) {
334 if (has_interface<PPB_ContentDecryptor_Private>()) { 334 if (has_interface<PPB_ContentDecryptor_Private>()) {
335 get_interface<PPB_ContentDecryptor_Private>()->DeliverSamples( 335 get_interface<PPB_ContentDecryptor_Private>()->DeliverSamples(
336 associated_instance_.pp_instance(), 336 associated_instance_.pp_instance(),
337 audio_frames.pp_resource(), 337 audio_frames.pp_resource(),
338 &decrypted_block_info); 338 &decrypted_sample_info);
339 } 339 }
340 } 340 }
341 341
342 } // namespace pp 342 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/cpp/private/content_decryptor_private.h ('k') | ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698