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 988dbd52f91a50e4acfd4904e2cff683e250f50e..257e084645ca7261fcdf0473c28e505b49fa5fa4 100644 |
--- a/content/common/gpu/client/command_buffer_proxy_impl.cc |
+++ b/content/common/gpu/client/command_buffer_proxy_impl.cc |
@@ -373,6 +373,8 @@ int32_t CommandBufferProxyImpl::CreateImage(ClientBuffer buffer, |
channel_->ShareGpuMemoryBufferToGpuProcess(gpu_memory_buffer->GetHandle(), |
&requires_sync_point); |
+ DCHECK(gpu::ImageFactory::IsGpuMemoryBufferFormatSupported( |
+ gpu_memory_buffer->GetFormat(), capabilities_)); |
DCHECK(gpu::ImageFactory::IsImageSizeValidForGpuMemoryBufferFormat( |
gfx::Size(width, height), gpu_memory_buffer->GetFormat())); |
DCHECK(gpu::ImageFactory::IsImageFormatCompatibleWithGpuMemoryBufferFormat( |