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

Unified Diff: media/filters/video_renderer_base.h

Issue 10832087: Remove VideoDecoderConfig.frame_rate_xxx() & VideoFrame:Get/SetDuration() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address more CR comments. Created 8 years, 5 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/filters/video_frame_generator.cc ('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 f384aa781c1edaa889432bba8d87597b3f91e6ba..6bd2daec673d83901ff17d4b6742ad0ad90d42c5 100644
--- a/media/filters/video_renderer_base.h
+++ b/media/filters/video_renderer_base.h
@@ -86,6 +86,9 @@ class MEDIA_EXPORT VideoRendererBase
void FrameReady(VideoDecoder::DecoderStatus status,
const scoped_refptr<VideoFrame>& frame);
+ // Helper method for adding a frame to |ready_frames_|
+ void AddReadyFrame(const scoped_refptr<VideoFrame>& frame);
+
// Helper method that schedules an asynchronous read from the decoder as long
// as there isn't a pending read and we have capacity.
void AttemptRead_Locked();
@@ -214,6 +217,10 @@ class MEDIA_EXPORT VideoRendererBase
base::TimeDelta preroll_timestamp_;
+ // Delayed frame used during kPrerolling to determine whether
+ // |preroll_timestamp_| is between this frame and the next one.
+ scoped_refptr<VideoFrame> prerolling_delayed_frame_;
+
// Embedder callback for notifying a new frame is available for painting.
base::Closure paint_cb_;
« no previous file with comments | « media/filters/video_frame_generator.cc ('k') | media/filters/video_renderer_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698