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

Unified Diff: media/cast/sender/video_frame_factory.h

Issue 906403006: [Cast] Size-Adaptable platform video encoders. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed hubbe's comments. Created 5 years, 10 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/cast/sender/video_encoder_unittest.cc ('k') | media/cast/sender/video_sender.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/sender/video_frame_factory.h
diff --git a/media/cast/sender/video_frame_factory.h b/media/cast/sender/video_frame_factory.h
index 3c23f88020b26f0e9c449c8d7e7571c5960c2e5b..d55deb7cd32d76eae84c8b2ad601fd0b61f50996 100644
--- a/media/cast/sender/video_frame_factory.h
+++ b/media/cast/sender/video_frame_factory.h
@@ -8,6 +8,10 @@
#include "base/memory/scoped_ptr.h"
#include "base/time/time.h"
+namespace gfx {
+class Size;
+}
+
namespace media {
class VideoFrame;
@@ -33,7 +37,11 @@ class VideoFrameFactory {
// Creates a |VideoFrame| suitable for input via |InsertRawVideoFrame|. Frames
// obtained in this manner may provide benefits such memory reuse and affinity
// with the encoder. The format is guaranteed to be I420 or NV12.
- virtual scoped_refptr<VideoFrame> CreateFrame(base::TimeDelta timestamp) = 0;
+ //
+ // This can transiently return null if the encoder is not yet initialized or
+ // is re-initializing.
+ virtual scoped_refptr<VideoFrame> MaybeCreateFrame(
+ const gfx::Size& frame_size, base::TimeDelta timestamp) = 0;
};
} // namespace cast
« no previous file with comments | « media/cast/sender/video_encoder_unittest.cc ('k') | media/cast/sender/video_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698