diff options
author | xhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-14 00:40:13 +0000 |
---|---|---|
committer | xhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-14 00:40:13 +0000 |
commit | 488add1fe820c2ab45b9191e94d7c806ed8e22b9 (patch) | |
tree | a483c43d428d066ea5041ec50db09ce941322796 /content/renderer | |
parent | 392fbb3dd27259adc0a0ff1127bc19ad5c317ce5 (diff) | |
download | chromium_src-488add1fe820c2ab45b9191e94d7c806ed8e22b9.zip chromium_src-488add1fe820c2ab45b9191e94d7c806ed8e22b9.tar.gz chromium_src-488add1fe820c2ab45b9191e94d7c806ed8e22b9.tar.bz2 |
Move AudioRendererImpl construction to WebMediaPlayerImpl.
This is extracted from a larger CL created by scherkus@: https://codereview.chromium.org/11468033/
BUG=none
TEST=media_unittests pass
Review URL: https://chromiumcodereview.appspot.com/11564007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173019 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer')
-rw-r--r-- | content/renderer/render_view_impl.cc | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc index cf9a365..ea65557 100644 --- a/content/renderer/render_view_impl.cc +++ b/content/renderer/render_view_impl.cc @@ -2596,17 +2596,10 @@ WebMediaPlayer* RenderViewImpl::createMediaPlayer( RenderAudioSourceProvider* audio_source_provider = NULL; - // Add in any custom filter factories first. + // |audio_source_provider| "provides" audio to WebKit and is a sink from the + // perspective of the audio renderer. if (!cmd_line->HasSwitch(switches::kDisableAudio)) { - // audio_source_provider is a "provider" to WebKit, and a sink - // from the perspective of the audio renderer. audio_source_provider = new RenderAudioSourceProvider(routing_id_); - - // Add the chrome specific audio renderer, using audio_source_provider - // as the sink. - media::AudioRendererImpl* audio_renderer = - new media::AudioRendererImpl(audio_source_provider); - collection->AddAudioRenderer(audio_renderer); } WebGraphicsContext3DCommandBufferImpl* context3d = NULL; |