Index: content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc |
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc b/content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc |
index b4ab7d05e8c60366db96abc238dd2142e1f5691e..98a1b3fcacb1ea4e6f5d0301218dfb1e4c9f1227 100644 |
--- a/content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc |
+++ b/content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc |
@@ -61,6 +61,7 @@ base::Closure GpuMemoryBufferImplOzoneNativePixmap::AllocateForTesting( |
gfx::BufferFormat format, |
gfx::BufferUsage usage, |
gfx::GpuMemoryBufferHandle* handle) { |
+ DCHECK(IsConfigurationSupported(format, usage)); |
scoped_refptr<ui::NativePixmap> pixmap = |
ui::OzonePlatform::GetInstance() |
->GetSurfaceFactoryOzone() |