| Index: content/common/gpu/client/gpu_memory_buffer_impl.cc
|
| diff --git a/content/common/gpu/client/gpu_memory_buffer_impl.cc b/content/common/gpu/client/gpu_memory_buffer_impl.cc
|
| index aa7aab794a734062f25f2d796333426bc437f69a..b1267b463dec656d0a4d1c4c0e795ebcb5407890 100644
|
| --- a/content/common/gpu/client/gpu_memory_buffer_impl.cc
|
| +++ b/content/common/gpu/client/gpu_memory_buffer_impl.cc
|
| @@ -99,6 +99,11 @@ size_t GpuMemoryBufferImpl::SubsamplingFactor(gfx::BufferFormat format,
|
| DCHECK_LT(static_cast<size_t>(plane), arraysize(factor));
|
| return factor[plane];
|
| }
|
| + case gfx::BufferFormat::YUV_420_BIPLANAR: {
|
| + static size_t factor[] = {1, 2};
|
| + DCHECK_LT(static_cast<size_t>(plane), arraysize(factor));
|
| + return factor[plane];
|
| + }
|
| }
|
| NOTREACHED();
|
| return 0;
|
| @@ -147,6 +152,10 @@ bool GpuMemoryBufferImpl::RowSizeInBytes(size_t width,
|
| DCHECK_EQ(width % 2, 0u);
|
| *size_in_bytes = width / SubsamplingFactor(format, plane);
|
| return true;
|
| + case gfx::BufferFormat::YUV_420_BIPLANAR:
|
| + DCHECK_EQ(width % 2, 0u);
|
| + *size_in_bytes = width;
|
| + return true;
|
| }
|
| NOTREACHED();
|
| return false;
|
|
|