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

Unified Diff: chrome/renderer/render_view.cc

Issue 4991003: Revert 66125 -- Broke Windows build - Move FilterType into MediaFilterCollect... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/base/filters.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.cc
===================================================================
--- chrome/renderer/render_view.cc (revision 66137)
+++ chrome/renderer/render_view.cc (working copy)
@@ -2636,7 +2636,7 @@
const CommandLine* cmd_line = CommandLine::ForCurrentProcess();
if (!cmd_line->HasSwitch(switches::kDisableAudio)) {
// Add the chrome specific audio renderer.
- collection->AddAudioRenderer(new AudioRendererImpl(audio_message_filter()));
+ collection->AddFilter(new AudioRendererImpl(audio_message_filter()));
}
if (cmd_line->HasSwitch(switches::kEnableAcceleratedDecoding) &&
@@ -2652,7 +2652,7 @@
// lost.
bool ret = context->makeContextCurrent();
CHECK(ret) << "Failed to switch context";
- collection->AddVideoDecoder(new IpcVideoDecoder(
+ collection->AddFilter(new IpcVideoDecoder(
MessageLoop::current(), context->context()));
}
@@ -2683,7 +2683,7 @@
bool pts_logging = cmd_line->HasSwitch(switches::kEnableVideoLogging);
scoped_refptr<webkit_glue::VideoRendererImpl> renderer(
new webkit_glue::VideoRendererImpl(pts_logging));
- collection->AddVideoRenderer(renderer);
+ collection->AddFilter(renderer);
video_renderer = renderer;
return new webkit_glue::WebMediaPlayerImpl(
« no previous file with comments | « no previous file | media/base/filters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698