| Index: media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc
|
| diff --git a/media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc b/media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc
|
| index 0d3d0683d88f4d34ff27335d9f1502d1f82059f8..c78c6450bb213bb7fa4d1e9d0353f394865c4d64 100644
|
| --- a/media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc
|
| +++ b/media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc
|
| @@ -180,6 +180,10 @@ void GpuVideoDecodeAcceleratorHost::Destroy() {
|
| delete this;
|
| }
|
|
|
| +VideoPixelFormat GpuVideoDecodeAcceleratorHost::GetOutputFormat() const {
|
| + return picture_buffer_format_;
|
| +}
|
| +
|
| void GpuVideoDecodeAcceleratorHost::OnWillDeleteImpl() {
|
| DCHECK(CalledOnValidThread());
|
| impl_ = NULL;
|
| @@ -219,12 +223,14 @@ void GpuVideoDecodeAcceleratorHost::OnBitstreamBufferProcessed(
|
| }
|
|
|
| void GpuVideoDecodeAcceleratorHost::OnProvidePictureBuffer(
|
| + VideoPixelFormat format,
|
| uint32_t num_requested_buffers,
|
| uint32_t textures_per_buffer,
|
| const gfx::Size& dimensions,
|
| uint32_t texture_target) {
|
| DCHECK(CalledOnValidThread());
|
| picture_buffer_dimensions_ = dimensions;
|
| + picture_buffer_format_ = format;
|
|
|
| const int kMaxVideoPlanes = 4;
|
| if (textures_per_buffer > kMaxVideoPlanes) {
|
|
|