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 3 // found in the LICENSE file. 4 5 #include "media/base/filter_collection.h" 6 7 #include "media/base/audio_renderer.h" 8 #include "media/base/demuxer.h" 9 #include "media/base/text_renderer.h" 10 #include "media/base/video_renderer.h" 11 12 namespace media { 13 FilterCollection()14FilterCollection::FilterCollection() : demuxer_(NULL) {} 15 ~FilterCollection()16FilterCollection::~FilterCollection() {} 17 SetDemuxer(Demuxer * demuxer)18void FilterCollection::SetDemuxer(Demuxer* demuxer) { 19 demuxer_ = demuxer; 20 } 21 GetDemuxer()22Demuxer* FilterCollection::GetDemuxer() { 23 return demuxer_; 24 } 25 SetAudioRenderer(scoped_ptr<AudioRenderer> audio_renderer)26void FilterCollection::SetAudioRenderer( 27 scoped_ptr<AudioRenderer> audio_renderer) { 28 audio_renderer_ = audio_renderer.Pass(); 29 } 30 GetAudioRenderer()31scoped_ptr<AudioRenderer> FilterCollection::GetAudioRenderer() { 32 return audio_renderer_.Pass(); 33 } 34 SetVideoRenderer(scoped_ptr<VideoRenderer> video_renderer)35void FilterCollection::SetVideoRenderer( 36 scoped_ptr<VideoRenderer> video_renderer) { 37 video_renderer_ = video_renderer.Pass(); 38 } 39 GetVideoRenderer()40scoped_ptr<VideoRenderer> FilterCollection::GetVideoRenderer() { 41 return video_renderer_.Pass(); 42 } 43 SetTextRenderer(scoped_ptr<TextRenderer> text_renderer)44void FilterCollection::SetTextRenderer( 45 scoped_ptr<TextRenderer> text_renderer) { 46 text_renderer_ = text_renderer.Pass(); 47 } 48 GetTextRenderer()49scoped_ptr<TextRenderer> FilterCollection::GetTextRenderer() { 50 return text_renderer_.Pass(); 51 } 52 53 } // namespace media 54