| Index: media/base/video_frame.h
|
| diff --git a/media/base/video_frame.h b/media/base/video_frame.h
|
| index 944a04018ca25c55a6fbd3d12e98b35374e35b77..dd925c9bd5c69a2152c1ac67a75fd8823b8f2801 100644
|
| --- a/media/base/video_frame.h
|
| +++ b/media/base/video_frame.h
|
| @@ -149,6 +149,20 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> {
|
| const gfx::Size& natural_size,
|
| base::TimeDelta timestamp);
|
|
|
| + // Wraps a set of native textures representing YV12A data with a VideoFrame.
|
| + // |mailbox_holders_release_cb| will be called with a sync token as the
|
| + // argument when the VideoFrame is to be destroyed.
|
| + static scoped_refptr<VideoFrame> WrapYV12ANativeTextures(
|
| + const gpu::MailboxHolder& y_mailbox_holder,
|
| + const gpu::MailboxHolder& u_mailbox_holder,
|
| + const gpu::MailboxHolder& v_mailbox_holder,
|
| + const gpu::MailboxHolder& a_mailbox_holder,
|
| + const ReleaseMailboxCB& mailbox_holders_release_cb,
|
| + const gfx::Size& coded_size,
|
| + const gfx::Rect& visible_rect,
|
| + const gfx::Size& natural_size,
|
| + base::TimeDelta timestamp);
|
| +
|
| // Wraps packed image data residing in a memory buffer with a VideoFrame.
|
| // The image data resides in |data| and is assumed to be packed tightly in a
|
| // buffer of logical dimensions |coded_size| with the appropriate bit depth
|
|
|