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

Side by Side Diff: content/renderer/pepper/pepper_plugin_delegate_impl.cc

Issue 11359196: Associate audio streams with their source/destination RenderView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased; and numerous clean-ups. Created 8 years 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 "content/renderer/pepper/pepper_plugin_delegate_impl.h" 5 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <cstddef> 8 #include <cstddef>
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 uint32_t PepperPluginDelegateImpl::GetAudioHardwareOutputBufferSize() { 824 uint32_t PepperPluginDelegateImpl::GetAudioHardwareOutputBufferSize() {
825 return static_cast<uint32_t>(GetAudioOutputBufferSize()); 825 return static_cast<uint32_t>(GetAudioOutputBufferSize());
826 } 826 }
827 827
828 webkit::ppapi::PluginDelegate::PlatformAudioOutput* 828 webkit::ppapi::PluginDelegate::PlatformAudioOutput*
829 PepperPluginDelegateImpl::CreateAudioOutput( 829 PepperPluginDelegateImpl::CreateAudioOutput(
830 uint32_t sample_rate, 830 uint32_t sample_rate,
831 uint32_t sample_count, 831 uint32_t sample_count,
832 webkit::ppapi::PluginDelegate::PlatformAudioOutputClient* client) { 832 webkit::ppapi::PluginDelegate::PlatformAudioOutputClient* client) {
833 return PepperPlatformAudioOutputImpl::Create( 833 return PepperPlatformAudioOutputImpl::Create(
834 static_cast<int>(sample_rate), static_cast<int>(sample_count), client); 834 static_cast<int>(sample_rate), static_cast<int>(sample_count),
835 GetRoutingID(), client);
835 } 836 }
836 837
837 webkit::ppapi::PluginDelegate::PlatformAudioInput* 838 webkit::ppapi::PluginDelegate::PlatformAudioInput*
838 PepperPluginDelegateImpl::CreateAudioInput( 839 PepperPluginDelegateImpl::CreateAudioInput(
839 const std::string& device_id, 840 const std::string& device_id,
840 uint32_t sample_rate, 841 uint32_t sample_rate,
841 uint32_t sample_count, 842 uint32_t sample_count,
842 webkit::ppapi::PluginDelegate::PlatformAudioInputClient* client) { 843 webkit::ppapi::PluginDelegate::PlatformAudioInputClient* client) {
843 return PepperPlatformAudioInputImpl::Create( 844 return PepperPlatformAudioInputImpl::Create(
844 AsWeakPtr(), device_id, static_cast<int>(sample_rate), 845 AsWeakPtr(), device_id, static_cast<int>(sample_rate),
(...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after
1804 RenderWidgetFullscreenPepper* container = 1805 RenderWidgetFullscreenPepper* container =
1805 static_cast<RenderWidgetFullscreenPepper*>( 1806 static_cast<RenderWidgetFullscreenPepper*>(
1806 instance->fullscreen_container()); 1807 instance->fullscreen_container());
1807 return container->mouse_lock_dispatcher(); 1808 return container->mouse_lock_dispatcher();
1808 } else { 1809 } else {
1809 return render_view_->mouse_lock_dispatcher(); 1810 return render_view_->mouse_lock_dispatcher();
1810 } 1811 }
1811 } 1812 }
1812 1813
1813 } // namespace content 1814 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698