| Index: content/common/gpu/client/context_provider_command_buffer.cc
|
| diff --git a/content/common/gpu/client/context_provider_command_buffer.cc b/content/common/gpu/client/context_provider_command_buffer.cc
|
| index 87be5a021465055791fa67cb16cd2dab9a4da29e..6d89d87c67b716ef3fa4a45188449f6abc050adc 100644
|
| --- a/content/common/gpu/client/context_provider_command_buffer.cc
|
| +++ b/content/common/gpu/client/context_provider_command_buffer.cc
|
| @@ -266,6 +266,10 @@ void ContextProviderCommandBuffer::InitializeCapabilities() {
|
|
|
| caps.discard_framebuffer =
|
| extension_set.count("GL_EXT_discard_framebuffer") > 0;
|
| + size_t mapped_memory_limit = context3d_->GetMappedMemoryLimit();
|
| + caps.max_transfer_buffer_usage_bytes =
|
| + mapped_memory_limit == WebGraphicsContext3DCommandBufferImpl::kNoLimit
|
| + ? std::numeric_limits<size_t>::max() : mapped_memory_limit;
|
|
|
| capabilities_ = caps;
|
| }
|
|
|