| Index: content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc
|
| diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc b/content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc
|
| index d869ef0d408d14608fbacc44ebb4392cad289d08..44e2dd5d6f24b3b21fbd15ce6af240810bcffd2b 100644
|
| --- a/content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc
|
| +++ b/content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc
|
| @@ -108,6 +108,7 @@ bool GpuMemoryBufferImplSharedMemory::IsFormatSupported(
|
| case gfx::BufferFormat::RGBA_8888:
|
| case gfx::BufferFormat::BGRA_8888:
|
| case gfx::BufferFormat::YUV_420:
|
| + case gfx::BufferFormat::YUV_420_BIPLANAR:
|
| return true;
|
| case gfx::BufferFormat::RGBX_8888:
|
| return false;
|
| @@ -149,7 +150,8 @@ bool GpuMemoryBufferImplSharedMemory::IsSizeValidForFormat(
|
| case gfx::BufferFormat::BGRA_8888:
|
| case gfx::BufferFormat::RGBX_8888:
|
| return true;
|
| - case gfx::BufferFormat::YUV_420: {
|
| + case gfx::BufferFormat::YUV_420:
|
| + case gfx::BufferFormat::YUV_420_BIPLANAR: {
|
| size_t num_planes = gfx::NumberOfPlanesForBufferFormat(format);
|
| for (size_t i = 0; i < num_planes; ++i) {
|
| size_t factor = SubsamplingFactor(format, i);
|
|
|