Chromium Code Reviews| Index: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc |
| diff --git a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc |
| index 80f4ebd043d36b6ccbb2052ebf9b4fa10564dac9..162eb1021867721abfcb6070f65decb7fb1a36ca 100644 |
| --- a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc |
| +++ b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc |
| @@ -481,11 +481,16 @@ bool WebGraphicsContext3DCommandBufferImpl::CreateContext( |
| lock.reset(); |
| } |
| + size_t gl_mapped_memory_limit = gpu::gles2::GLES2Implementation::kNoLimit; |
| +#if defined(OS_ANDROID) |
| + gl_mapped_memory_limit = mapped_memory_limit_; |
| +#endif |
|
piman
2013/08/30 03:31:07
noooo!
This is taking the problem upside down.
Y
|
| + |
| if (!real_gl_->Initialize( |
| start_transfer_buffer_size_, |
| min_transfer_buffer_size_, |
| max_transfer_buffer_size_, |
| - mapped_memory_limit_)) { |
| + gl_mapped_memory_limit)) { |
| return false; |
| } |