Chromium Code Reviews| Index: media/gpu/ipc/client/gpu_video_decode_accelerator_host.h |
| diff --git a/media/gpu/ipc/client/gpu_video_decode_accelerator_host.h b/media/gpu/ipc/client/gpu_video_decode_accelerator_host.h |
| index ee80d44d8658a3fd27cf349130beebcd48754c5c..c1dc53ce235f248a434ba22c68dce89a52bafd05 100644 |
| --- a/media/gpu/ipc/client/gpu_video_decode_accelerator_host.h |
| +++ b/media/gpu/ipc/client/gpu_video_decode_accelerator_host.h |
| @@ -47,6 +47,7 @@ class GpuVideoDecodeAcceleratorHost |
| void Flush() override; |
| void Reset() override; |
| void Destroy() override; |
| + VideoPixelFormat GetOutputFormat() const override; |
| // gpu::CommandBufferProxyImpl::DeletionObserver implemetnation. |
| void OnWillDeleteImpl() override; |
| @@ -64,7 +65,8 @@ class GpuVideoDecodeAcceleratorHost |
| // process. Should not be called directly. |
| void OnInitializationComplete(bool success); |
| void OnBitstreamBufferProcessed(int32_t bitstream_buffer_id); |
| - void OnProvidePictureBuffer(uint32_t num_requested_buffers, |
| + void OnProvidePictureBuffer(VideoPixelFormat format, |
| + uint32_t num_requested_buffers, |
| uint32_t textures_per_buffer, |
| const gfx::Size& dimensions, |
| uint32_t texture_target); |
| @@ -94,6 +96,8 @@ class GpuVideoDecodeAcceleratorHost |
| // Requested dimensions of the buffer, from ProvidePictureBuffers(). |
| gfx::Size picture_buffer_dimensions_; |
| + VideoPixelFormat picture_buffer_format_; |
|
miu
2016/05/12 20:03:02
This should have default initialization (PIXEL_FOR
|
| + |
| // WeakPtr factory for posting tasks back to itself. |
| base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_; |