| Index: media/base/video_frame.h
|
| diff --git a/media/base/video_frame.h b/media/base/video_frame.h
|
| index 82a08a986de17ce9482f8ff8767fbe3403e21a86..df383d0d79849a9b746645cdf07febedeceaf461 100644
|
| --- a/media/base/video_frame.h
|
| +++ b/media/base/video_frame.h
|
| @@ -148,6 +148,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
|
| const gfx::Rect& visible_rect,
|
| const gfx::Size& natural_size,
|
| uint8* data,
|
| + size_t data_size,
|
| base::SharedMemoryHandle handle,
|
| base::TimeDelta timestamp,
|
| const base::Closure& no_longer_needed_cb);
|
| @@ -192,6 +193,10 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
|
|
|
| static size_t NumPlanes(Format format);
|
|
|
| + // Returns the required allocation size for a (tightly packed) frame of the
|
| + // given coded size and format.
|
| + static size_t AllocationSize(Format format, const gfx::Size& coded_size);
|
| +
|
| Format format() const { return format_; }
|
|
|
| const gfx::Size& coded_size() const { return coded_size_; }
|
|
|