summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authoracolwell@chromium.org <acolwell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-15 22:04:49 +0000
committeracolwell@chromium.org <acolwell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-15 22:04:49 +0000
commitb7ba5b5e11aaa87de7601daf1ab5443fe41a6f3c (patch)
treecfe597f6707c7edd075944c97da2849194daa937 /chrome
parentb87c4a775b5b625dc2034b70e1232862d5d7faac (diff)
downloadchromium_src-b7ba5b5e11aaa87de7601daf1ab5443fe41a6f3c.zip
chromium_src-b7ba5b5e11aaa87de7601daf1ab5443fe41a6f3c.tar.gz
chromium_src-b7ba5b5e11aaa87de7601daf1ab5443fe41a6f3c.tar.bz2
Move FilterType into MediaFilterCollection
MediaFilterCollection is the only code that uses FilterType now so I'm moving the enum into that class and removing all references from the MediaFilter & derived classes. BUG=61823 TEST=No new functionality. Existing tests pass. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66125 Review URL: http://codereview.chromium.org/4653005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66182 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/renderer/render_view.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index 8bd4675..015ed0f 100644
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -2636,7 +2636,7 @@ WebMediaPlayer* RenderView::createMediaPlayer(
const CommandLine* cmd_line = CommandLine::ForCurrentProcess();
if (!cmd_line->HasSwitch(switches::kDisableAudio)) {
// Add the chrome specific audio renderer.
- collection->AddFilter(new AudioRendererImpl(audio_message_filter()));
+ collection->AddAudioRenderer(new AudioRendererImpl(audio_message_filter()));
}
if (cmd_line->HasSwitch(switches::kEnableAcceleratedDecoding) &&
@@ -2652,7 +2652,7 @@ WebMediaPlayer* RenderView::createMediaPlayer(
// lost.
bool ret = context->makeContextCurrent();
CHECK(ret) << "Failed to switch context";
- collection->AddFilter(new IpcVideoDecoder(
+ collection->AddVideoDecoder(new IpcVideoDecoder(
MessageLoop::current(), context->context()));
}
@@ -2683,7 +2683,7 @@ WebMediaPlayer* RenderView::createMediaPlayer(
bool pts_logging = cmd_line->HasSwitch(switches::kEnableVideoLogging);
scoped_refptr<webkit_glue::VideoRendererImpl> renderer(
new webkit_glue::VideoRendererImpl(pts_logging));
- collection->AddFilter(renderer);
+ collection->AddVideoRenderer(renderer);
video_renderer = renderer;
return new webkit_glue::WebMediaPlayerImpl(