| Index: gpu/command_buffer/service/in_process_command_buffer.cc
|
| diff --git a/gpu/command_buffer/service/in_process_command_buffer.cc b/gpu/command_buffer/service/in_process_command_buffer.cc
|
| index 3f225423fda2a623f5f310544b5f58409d4946dd..5e1921aa5d5e1be4bd72497ee9ed5b0b361b80fb 100644
|
| --- a/gpu/command_buffer/service/in_process_command_buffer.cc
|
| +++ b/gpu/command_buffer/service/in_process_command_buffer.cc
|
| @@ -15,7 +15,6 @@
|
| #include "base/location.h"
|
| #include "base/logging.h"
|
| #include "base/memory/weak_ptr.h"
|
| -#include "base/numerics/safe_conversions.h"
|
| #include "base/sequence_checker.h"
|
| #include "base/single_thread_task_runner.h"
|
| #include "base/thread_task_runner_handle.h"
|
| @@ -115,7 +114,6 @@
|
| handle.type = gfx::SHARED_MEMORY_BUFFER;
|
| handle.handle = ShareToGpuThread(source_handle.handle);
|
| handle.offset = source_handle.offset;
|
| - handle.stride = source_handle.stride;
|
| *requires_sync_point = false;
|
| return handle;
|
| }
|
| @@ -737,14 +735,9 @@
|
|
|
| switch (handle.type) {
|
| case gfx::SHARED_MEMORY_BUFFER: {
|
| - if (!base::IsValueInRangeForNumericType<size_t>(handle.stride)) {
|
| - LOG(ERROR) << "Invalid stride for image.";
|
| - return;
|
| - }
|
| scoped_refptr<gl::GLImageSharedMemory> image(
|
| new gl::GLImageSharedMemory(size, internalformat));
|
| - if (!image->Initialize(handle.handle, handle.id, format, handle.offset,
|
| - handle.stride)) {
|
| + if (!image->Initialize(handle.handle, handle.id, format, handle.offset)) {
|
| LOG(ERROR) << "Failed to initialize image.";
|
| return;
|
| }
|
|
|