diff options
Diffstat (limited to 'chromium/media/base/video_renderer.h')
-rw-r--r-- | chromium/media/base/video_renderer.h | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/chromium/media/base/video_renderer.h b/chromium/media/base/video_renderer.h index 2650221e3d8..b4154a0410b 100644 --- a/chromium/media/base/video_renderer.h +++ b/chromium/media/base/video_renderer.h @@ -11,10 +11,6 @@ #include "media/base/media_export.h" #include "media/base/pipeline_status.h" -namespace gfx { -class Size; -} - namespace media { class DemuxerStream; @@ -26,9 +22,6 @@ class MEDIA_EXPORT VideoRenderer { // the clock should not exceed. typedef base::Callback<void(base::TimeDelta)> TimeCB; - // Executed when the natural size of the video has changed. - typedef base::Callback<void(const gfx::Size& size)> NaturalSizeChangedCB; - // Used to query the current time or duration of the media. typedef base::Callback<base::TimeDelta()> TimeDeltaCB; @@ -43,9 +36,6 @@ class MEDIA_EXPORT VideoRenderer { // // |time_cb| is executed whenever time has advanced by way of video rendering. // - // |size_changed_cb| is executed whenever the dimensions of the video has - // changed. - // // |ended_cb| is executed when video rendering has reached the end of stream. // // |error_cb| is executed if an error was encountered. @@ -54,10 +44,10 @@ class MEDIA_EXPORT VideoRenderer { // // |get_duration_cb| is used to query the media duration. virtual void Initialize(DemuxerStream* stream, + bool low_delay, const PipelineStatusCB& init_cb, const StatisticsCB& statistics_cb, const TimeCB& time_cb, - const NaturalSizeChangedCB& size_changed_cb, const base::Closure& ended_cb, const PipelineStatusCB& error_cb, const TimeDeltaCB& get_time_cb, @@ -67,11 +57,8 @@ class MEDIA_EXPORT VideoRenderer { // |callback| when playback is underway. virtual void Play(const base::Closure& callback) = 0; - // Temporarily suspend decoding and rendering video, executing |callback| when - // playback has been suspended. - virtual void Pause(const base::Closure& callback) = 0; - - // Discard any video data, executing |callback| when completed. + // Discard any video data and stop reading from |stream|, executing |callback| + // when completed. virtual void Flush(const base::Closure& callback) = 0; // Start prerolling video data. If |time| equals kNoTimestamp() then all |