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

Unified Diff: media/filters/video_renderer_base.h

Issue 10824141: Remove VideoDecoder::natural_size() & added VideoFrame::natural_size(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix copyright year. 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 6bd2daec673d83901ff17d4b6742ad0ad90d42c5..276a24b4d45b981326a197d8fca29d995e1f06e2 100644
--- a/media/filters/video_renderer_base.h
+++ b/media/filters/video_renderer_base.h
@@ -116,6 +116,10 @@ class MEDIA_EXPORT VideoRendererBase
// Return the number of frames currently held by this class.
int NumFrames_Locked() const;
+ // Updates |current_frame_| to the next frame on |ready_frames_| and calls
+ // |size_changed_cb_| if the natural size changes.
+ void SetCurrentFrameToNextReadyFrame();
+
// Used for accessing data members.
base::Lock lock_;
@@ -228,6 +232,9 @@ class MEDIA_EXPORT VideoRendererBase
// opaque.
SetOpaqueCB set_opaque_cb_;
+ // The last natural size |size_changed_cb_| was called with.
+ gfx::Size last_natural_size_;
+
DISALLOW_COPY_AND_ASSIGN(VideoRendererBase);
};
« 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