| Index: content/browser/gpu/browser_gpu_memory_buffer_manager.cc
|
| diff --git a/content/browser/gpu/browser_gpu_memory_buffer_manager.cc b/content/browser/gpu/browser_gpu_memory_buffer_manager.cc
|
| index 2db48f15e027e76a46d8921c8512252461bd9623..70184a0f48aeb2218554e36f37314ed2ba6854ac 100644
|
| --- a/content/browser/gpu/browser_gpu_memory_buffer_manager.cc
|
| +++ b/content/browser/gpu/browser_gpu_memory_buffer_manager.cc
|
| @@ -99,9 +99,8 @@
|
| // by factory.
|
| if (!gpu_memory_buffer_factory_host_->IsGpuMemoryBufferConfigurationSupported(
|
| format, usage)) {
|
| - DCHECK(GpuMemoryBufferImplSharedMemory::IsFormatSupported(format))
|
| - << format;
|
| - DCHECK(GpuMemoryBufferImplSharedMemory::IsUsageSupported(usage)) << usage;
|
| + DCHECK(GpuMemoryBufferImplSharedMemory::IsFormatSupported(format));
|
| + DCHECK_EQ(usage, gfx::GpuMemoryBuffer::MAP);
|
| return GpuMemoryBufferImplSharedMemory::Create(
|
| g_next_gpu_memory_buffer_id.GetNext(), size, format);
|
| }
|
| @@ -143,8 +142,8 @@
|
| format, usage)) {
|
| // Early out if we cannot fallback to shared memory buffer.
|
| if (!GpuMemoryBufferImplSharedMemory::IsFormatSupported(format) ||
|
| - !GpuMemoryBufferImplSharedMemory::IsUsageSupported(usage) ||
|
| - !GpuMemoryBufferImplSharedMemory::IsSizeValidForFormat(size, format)) {
|
| + !GpuMemoryBufferImplSharedMemory::IsSizeValidForFormat(size, format) ||
|
| + usage != gfx::GpuMemoryBuffer::MAP) {
|
| callback.Run(gfx::GpuMemoryBufferHandle());
|
| return;
|
| }
|
|
|