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

Side by Side Diff: content/renderer/pepper/pepper_plugin_instance_impl.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, 2 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 | « content/renderer/pepper/pepper_plugin_instance_impl.h ('k') | media/cdm/ppapi/cdm_adapter.cc » ('j') | 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 "content/renderer/pepper/pepper_plugin_instance_impl.h" 5 #include "content/renderer/pepper/pepper_plugin_instance_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback_helpers.h" 8 #include "base/callback_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 2258 matching lines...) Expand 10 before | Expand all | Expand 10 after
2269 void PepperPluginInstanceImpl::DeliverFrame( 2269 void PepperPluginInstanceImpl::DeliverFrame(
2270 PP_Instance instance, 2270 PP_Instance instance,
2271 PP_Resource decrypted_frame, 2271 PP_Resource decrypted_frame,
2272 const PP_DecryptedFrameInfo* frame_info) { 2272 const PP_DecryptedFrameInfo* frame_info) {
2273 content_decryptor_delegate_->DeliverFrame(decrypted_frame, frame_info); 2273 content_decryptor_delegate_->DeliverFrame(decrypted_frame, frame_info);
2274 } 2274 }
2275 2275
2276 void PepperPluginInstanceImpl::DeliverSamples( 2276 void PepperPluginInstanceImpl::DeliverSamples(
2277 PP_Instance instance, 2277 PP_Instance instance,
2278 PP_Resource audio_frames, 2278 PP_Resource audio_frames,
2279 const PP_DecryptedBlockInfo* block_info) { 2279 const PP_DecryptedSampleInfo* sample_info) {
2280 content_decryptor_delegate_->DeliverSamples(audio_frames, block_info); 2280 content_decryptor_delegate_->DeliverSamples(audio_frames, sample_info);
2281 } 2281 }
2282 2282
2283 void PepperPluginInstanceImpl::NumberOfFindResultsChanged( 2283 void PepperPluginInstanceImpl::NumberOfFindResultsChanged(
2284 PP_Instance instance, 2284 PP_Instance instance,
2285 int32_t total, 2285 int32_t total,
2286 PP_Bool final_result) { 2286 PP_Bool final_result) {
2287 DCHECK_NE(find_identifier_, -1); 2287 DCHECK_NE(find_identifier_, -1);
2288 render_view_->reportFindInPageMatchCount( 2288 render_view_->reportFindInPageMatchCount(
2289 find_identifier_, total, PP_ToBool(final_result)); 2289 find_identifier_, total, PP_ToBool(final_result));
2290 } 2290 }
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after
3000 // Running out-of-process. Initiate an IPC call to notify the plugin 3000 // Running out-of-process. Initiate an IPC call to notify the plugin
3001 // process. 3001 // process.
3002 ppapi::proxy::HostDispatcher* dispatcher = 3002 ppapi::proxy::HostDispatcher* dispatcher =
3003 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance()); 3003 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance());
3004 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad( 3004 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad(
3005 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data)); 3005 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data));
3006 } 3006 }
3007 } 3007 }
3008 3008
3009 } // namespace content 3009 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.h ('k') | media/cdm/ppapi/cdm_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698