| Index: content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc
|
| diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc b/content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc
|
| index a1d0e5c0d3fa67425b2b9c5aa2d8ccb0f3611381..8ed95a9037f7e9282364615944eec7243aa6c7e7 100644
|
| --- a/content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc
|
| +++ b/content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc
|
| @@ -23,6 +23,7 @@ int WindowFormat(gfx::GpuMemoryBuffer::Format format) {
|
| case gfx::GpuMemoryBuffer::ETC1:
|
| case gfx::GpuMemoryBuffer::RGBX_8888:
|
| case gfx::GpuMemoryBuffer::BGRA_8888:
|
| + case gfx::GpuMemoryBuffer::YUV_420:
|
| NOTREACHED();
|
| return 0;
|
| }
|
| @@ -81,7 +82,7 @@ bool GpuMemoryBufferImplSurfaceTexture::Map(void** data) {
|
| }
|
|
|
| size_t stride_in_bytes = 0;
|
| - if (!StrideInBytes(buffer.stride, format_, &stride_in_bytes))
|
| + if (!StrideInBytes(buffer.stride, format_, 0, &stride_in_bytes))
|
| return false;
|
|
|
| DCHECK_LE(size_.width(), buffer.stride);
|
|
|