| Index: content/common/gpu/client/command_buffer_proxy_impl.cc
|
| diff --git a/content/common/gpu/client/command_buffer_proxy_impl.cc b/content/common/gpu/client/command_buffer_proxy_impl.cc
|
| index 75cffa2fdd0f5340391b23bbd493ab4b7bae6b19..8241812cc2af9aa068f6bce602727e67ecf841eb 100644
|
| --- a/content/common/gpu/client/command_buffer_proxy_impl.cc
|
| +++ b/content/common/gpu/client/command_buffer_proxy_impl.cc
|
| @@ -371,6 +371,8 @@ int32_t CommandBufferProxyImpl::CreateImage(ClientBuffer buffer,
|
| channel_->ShareGpuMemoryBufferToGpuProcess(gpu_memory_buffer->GetHandle(),
|
| &requires_sync_point);
|
|
|
| + DCHECK(gpu::ImageFactory::IsImageSizeValidForGpuMemoryBufferFormat(
|
| + gfx::Size(width, height), gpu_memory_buffer->GetFormat()));
|
| DCHECK(gpu::ImageFactory::IsImageFormatCompatibleWithGpuMemoryBufferFormat(
|
| internalformat, gpu_memory_buffer->GetFormat()));
|
| if (!Send(new GpuCommandBufferMsg_CreateImage(route_id_,
|
|
|