| 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 8e1f56f694f2983140c40eefa89d37ebd8a40f71..5c8cdb66be3ed2ffd67258daaeb63b5114793f5e 100644
|
| --- a/content/common/child_process_host_impl.cc
|
| +++ b/content/common/child_process_host_impl.cc
|
| @@ -320,16 +320,9 @@ void ChildProcessHostImpl::OnAllocateGpuMemoryBuffer(
|
| gfx::GpuMemoryBuffer::Format format,
|
| gfx::GpuMemoryBuffer::Usage usage,
|
| IPC::Message* reply) {
|
| - base::CheckedNumeric<int> size = width;
|
| - size *= height;
|
| - if (!size.IsValid()) {
|
| - GpuMemoryBufferAllocated(reply, gfx::GpuMemoryBufferHandle());
|
| - return;
|
| - }
|
| -
|
| // TODO(reveman): Add support for other types of GpuMemoryBuffers.
|
| - if (!GpuMemoryBufferImplSharedMemory::IsConfigurationSupported(
|
| - gfx::Size(width, height), format, usage)) {
|
| + if (!GpuMemoryBufferImplSharedMemory::IsFormatSupported(format) ||
|
| + !GpuMemoryBufferImplSharedMemory::IsUsageSupported(usage)) {
|
| GpuMemoryBufferAllocated(reply, gfx::GpuMemoryBufferHandle());
|
| return;
|
| }
|
|
|