| 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 2c5b4da55fc9cfb091e068ed760b147c013ffc2a..30bb2fbaa82a76b89d52cbfaf4ecc9cf56d466c8 100644
|
| --- a/content/common/gpu/client/context_provider_command_buffer.cc
|
| +++ b/content/common/gpu/client/context_provider_command_buffer.cc
|
| @@ -264,6 +264,11 @@ void ContextProviderCommandBuffer::InitializeCapabilities() {
|
| caps.texture_usage = extension_set.count("GL_ANGLE_texture_usage") > 0;
|
| caps.texture_storage = extension_set.count("GL_EXT_texture_storage") > 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;
|
| }
|
|
|
|
|