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

Unified Diff: media/filters/video_renderer_base.h

Issue 10829200: Fix VideoRendererBase end of stream logic. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: time_cb_ -> max_time_cb_ Created 8 years, 4 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/mock_filters.h ('k') | media/filters/video_renderer_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/video_renderer_base.h
diff --git a/media/filters/video_renderer_base.h b/media/filters/video_renderer_base.h
index 04c4410d484386e75c2bd5b048d37a9569addf06..a89b8ee04f70336866f420f1da20c25f998a25db 100644
--- a/media/filters/video_renderer_base.h
+++ b/media/filters/video_renderer_base.h
@@ -28,6 +28,9 @@ class MEDIA_EXPORT VideoRendererBase
public:
typedef base::Callback<void(bool)> SetOpaqueCB;
+ // Maximum duration of the last frame.
+ static base::TimeDelta kMaxLastFrameDuration();
+
// |paint_cb| is executed on the video frame timing thread whenever a new
// frame is available for painting via GetCurrentFrame().
//
@@ -50,7 +53,7 @@ class MEDIA_EXPORT VideoRendererBase
virtual void Initialize(const scoped_refptr<VideoDecoder>& decoder,
const PipelineStatusCB& init_cb,
const StatisticsCB& statistics_cb,
- const TimeCB& time_cb,
+ const TimeCB& max_time_cb,
const NaturalSizeChangedCB& size_changed_cb,
const base::Closure& ended_cb,
const PipelineStatusCB& error_cb,
@@ -209,7 +212,7 @@ class MEDIA_EXPORT VideoRendererBase
// Event callbacks.
StatisticsCB statistics_cb_;
- TimeCB time_cb_;
+ TimeCB max_time_cb_;
NaturalSizeChangedCB size_changed_cb_;
base::Closure ended_cb_;
PipelineStatusCB error_cb_;
« no previous file with comments | « media/base/mock_filters.h ('k') | media/filters/video_renderer_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698