Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(887)

Unified Diff: content/common/gpu/client/context_provider_command_buffer.cc

Issue 22900018: cc: Set the mapped memory reclaim limit for the renderer compositor on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698