| Index: media/base/video_frame.h
|
| diff --git a/media/base/video_frame.h b/media/base/video_frame.h
|
| index 468df18802069010df4687e31a2d53500cd555e6..1cb754b5499ab874f993eab5426bf7bc55a08918 100644
|
| --- a/media/base/video_frame.h
|
| +++ b/media/base/video_frame.h
|
| @@ -156,6 +156,17 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
|
| size_t shared_memory_offset,
|
| base::TimeDelta timestamp);
|
|
|
| + // Same as WrapExternalData() with GpuMemoryBuffers.
|
| + // The returned VideoFrame does not own the GpuMemoryBuffer.
|
| + static scoped_refptr<VideoFrame> WrapExternalGpuMemoryBuffer(
|
| + VideoPixelFormat format,
|
| + const gfx::Size& coded_size,
|
| + const gfx::Rect& visible_rect,
|
| + const gfx::Size& natural_size,
|
| + uint8_t* data,
|
| + const gfx::GpuMemoryBufferHandle& y_handle,
|
| + base::TimeDelta timestamp);
|
| +
|
| // Wraps external YUV data of the given parameters with a VideoFrame.
|
| // The returned VideoFrame does not own the data passed in.
|
| static scoped_refptr<VideoFrame> WrapExternalYuvData(
|
| @@ -303,6 +314,9 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
|
| static void HashFrameForTesting(base::MD5Context* context,
|
| const scoped_refptr<VideoFrame>& frame);
|
|
|
| + // Returns the BufferFormat to use for the given VideoPixelFormat.
|
| + static gfx::BufferFormat BufferFormat(VideoPixelFormat format);
|
| +
|
| // Returns true if |frame| is accessible and mapped in the VideoFrame memory
|
| // space. If false, clients should refrain from accessing data(),
|
| // visible_data() etc.
|
|
|