| Index: content/common/child_process_host_impl.cc
|
| diff --git a/content/common/child_process_host_impl.cc b/content/common/child_process_host_impl.cc
|
| index 3fa4dc89cf090a7724956b500b49ac2a2a802bab..69a63507f5866808d58339dc9aa9f17ccc654caa 100644
|
| --- a/content/common/child_process_host_impl.cc
|
| +++ b/content/common/child_process_host_impl.cc
|
| @@ -323,9 +323,11 @@
|
| // and handle failure in a controlled way when not. We just need to make
|
| // sure |format| and |usage| are supported here.
|
| if (GpuMemoryBufferImplSharedMemory::IsFormatSupported(format) &&
|
| - GpuMemoryBufferImplSharedMemory::IsUsageSupported(usage)) {
|
| + usage == gfx::GpuMemoryBuffer::MAP) {
|
| *handle = GpuMemoryBufferImplSharedMemory::AllocateForChildProcess(
|
| - g_next_gpu_memory_buffer_id.GetNext(), gfx::Size(width, height), format,
|
| + g_next_gpu_memory_buffer_id.GetNext(),
|
| + gfx::Size(width, height),
|
| + format,
|
| peer_process_.Handle());
|
| }
|
| }
|
|
|