| Index: gpu/command_buffer/service/image_factory.cc
|
| diff --git a/gpu/command_buffer/service/image_factory.cc b/gpu/command_buffer/service/image_factory.cc
|
| index 9d4e659d02caee7b94fcaaeccbe9d2cb753883be..a1a3f15a36ccf7801d933a2e799bc147ff66a538 100644
|
| --- a/gpu/command_buffer/service/image_factory.cc
|
| +++ b/gpu/command_buffer/service/image_factory.cc
|
| @@ -88,6 +88,7 @@ bool ImageFactory::IsGpuMemoryBufferFormatSupported(
|
| case gfx::BufferFormat::RGBA_8888:
|
| case gfx::BufferFormat::RGBX_8888:
|
| case gfx::BufferFormat::YUV_420:
|
| + case gfx::BufferFormat::YUV_420_BIPLANAR:
|
| return true;
|
| }
|
|
|
| @@ -115,6 +116,7 @@ bool ImageFactory::IsImageSizeValidForGpuMemoryBufferFormat(
|
| case gfx::BufferFormat::RGBX_8888:
|
| return true;
|
| case gfx::BufferFormat::YUV_420:
|
| + case gfx::BufferFormat::YUV_420_BIPLANAR:
|
| // U and V planes are subsampled by a factor of 2.
|
| return size.width() % 2 == 0 && size.height() % 2 == 0;
|
| }
|
|
|