| Index: media/filters/gpu_video_decoder.h
|
| diff --git a/media/filters/gpu_video_decoder.h b/media/filters/gpu_video_decoder.h
|
| index c2defb3aa4fd1eff11abf0196751cd7d0bf64e4f..2f4c5e64f2c43b8ca19f604fd9874b65ea40b521 100644
|
| --- a/media/filters/gpu_video_decoder.h
|
| +++ b/media/filters/gpu_video_decoder.h
|
| @@ -48,9 +48,18 @@ class MEDIA_EXPORT GpuVideoDecoder
|
| // Allocate & delete native textures.
|
| virtual bool CreateTextures(int32 count, const gfx::Size& size,
|
| std::vector<uint32>* texture_ids,
|
| + std::vector<gpu::Mailbox>* texture_mailboxes,
|
| uint32 texture_target) = 0;
|
| virtual void DeleteTexture(uint32 texture_id) = 0;
|
|
|
| + virtual uint32 ProduceTextureToMailbox(const gpu::Mailbox& mailbox,
|
| + uint32 texture_id,
|
| + uint32 texture_target) = 0;
|
| + virtual void ConsumeMailboxToTexture(const gpu::Mailbox& mailbox,
|
| + uint32 texture_id,
|
| + uint32 texture_target,
|
| + uint32 sync_point) = 0;
|
| +
|
| // Read pixels from a native texture and store into |pixels| as RGBA.
|
| virtual void ReadPixels(uint32 texture_id, uint32 texture_target,
|
| const gfx::Size& size, const SkBitmap& pixels) = 0;
|
| @@ -129,7 +138,7 @@ class MEDIA_EXPORT GpuVideoDecoder
|
| const scoped_refptr<VideoFrame>& frame);
|
|
|
| // Indicate the picture buffer can be reused by the decoder.
|
| - void ReusePictureBuffer(int64 picture_buffer_id);
|
| + void ReusePictureBuffer(int64 picture_buffer_id, uint32 sync_point);
|
|
|
| void RecordBufferData(
|
| const BitstreamBuffer& bitstream_buffer, const DecoderBuffer& buffer);
|
|
|