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

Unified Diff: media/base/filter_collection.h

Issue 10918022: Move AudioDecoder initialization into AudioRenderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: media/base/filter_collection.h
diff --git a/media/base/filter_collection.h b/media/base/filter_collection.h
index 08354a7f8a5cc8dc71f810651a33a060032f4948..7a6688501573fc35bc31257e215c1c3dce900f51 100644
--- a/media/base/filter_collection.h
+++ b/media/base/filter_collection.h
@@ -25,6 +25,7 @@ class VideoRenderer;
// http://crbug.com/110800
class MEDIA_EXPORT FilterCollection {
public:
+ typedef std::list<scoped_refptr<AudioDecoder> > AudioDecoderList;
typedef std::list<scoped_refptr<VideoDecoder> > VideoDecoderList;
FilterCollection();
@@ -35,7 +36,6 @@ class MEDIA_EXPORT FilterCollection {
const scoped_refptr<Demuxer>& GetDemuxer();
// Adds a filter to the collection.
- void AddAudioDecoder(AudioDecoder* audio_decoder);
void AddAudioRenderer(AudioRenderer* audio_renderer);
void AddVideoRenderer(VideoRenderer* video_renderer);
@@ -50,11 +50,12 @@ class MEDIA_EXPORT FilterCollection {
void SelectAudioRenderer(scoped_refptr<AudioRenderer>* out);
void SelectVideoRenderer(scoped_refptr<VideoRenderer>* out);
+ AudioDecoderList* GetAudioDecoders();
VideoDecoderList* GetVideoDecoders();
private:
scoped_refptr<Demuxer> demuxer_;
- std::list<scoped_refptr<AudioDecoder> > audio_decoders_;
+ AudioDecoderList audio_decoders_;
VideoDecoderList video_decoders_;
std::list<scoped_refptr<AudioRenderer> > audio_renderers_;
std::list<scoped_refptr<VideoRenderer> > video_renderers_;

Powered by Google App Engine
This is Rietveld 408576698