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

Unified Diff: media/base/video_renderer.h

Issue 14348007: Reland: Remove reference counting from media::VideoDecoder and friends. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 8 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
« no previous file with comments | « media/base/video_decoder.h ('k') | media/filters/decrypting_video_decoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_renderer.h
diff --git a/media/base/video_renderer.h b/media/base/video_renderer.h
index c609b68bc65a0035f719751fe48fb9dfe395c306..9d42d14f865ff44ccf36ea33d1f3d86b7f141ec3 100644
--- a/media/base/video_renderer.h
+++ b/media/base/video_renderer.h
@@ -5,8 +5,6 @@
#ifndef MEDIA_BASE_VIDEO_RENDERER_H_
#define MEDIA_BASE_VIDEO_RENDERER_H_
-#include <list>
-
#include "base/callback.h"
#include "base/memory/ref_counted.h"
#include "base/time.h"
@@ -24,8 +22,6 @@ class VideoDecoder;
class MEDIA_EXPORT VideoRenderer {
public:
- typedef std::list<scoped_refptr<VideoDecoder> > VideoDecoderList;
-
// Used to update the pipeline's clock time. The parameter is the time that
// the clock should not exceed.
typedef base::Callback<void(base::TimeDelta)> TimeCB;
@@ -39,8 +35,8 @@ class MEDIA_EXPORT VideoRenderer {
VideoRenderer();
virtual ~VideoRenderer();
- // Initialize a VideoRenderer with the given DemuxerStream and
- // VideoDecoderList, executing |init_cb| callback upon completion.
+ // Initialize a VideoRenderer with |stream|, executing |init_cb| upon
+ // completion.
//
// |statistics_cb| is executed periodically with video rendering stats, such
// as dropped frames.
@@ -58,7 +54,6 @@ class MEDIA_EXPORT VideoRenderer {
//
// |get_duration_cb| is used to query the media duration.
virtual void Initialize(const scoped_refptr<DemuxerStream>& stream,
- const VideoDecoderList& decoders,
const PipelineStatusCB& init_cb,
const StatisticsCB& statistics_cb,
const TimeCB& time_cb,
« no previous file with comments | « media/base/video_decoder.h ('k') | media/filters/decrypting_video_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698