| 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
|
|
|