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

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

Issue 1235203003: WIP cc: remove unused and legacy GetMappedMemoryLimit code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 cb827258a5fdf8c271bc0d3eb73874d9a5bc7fe4..28b772002a2e5ff048d4531e3fb9ffc0e8226cd4 100644
--- a/content/common/gpu/client/context_provider_command_buffer.cc
+++ b/content/common/gpu/client/context_provider_command_buffer.cc
@@ -211,12 +211,6 @@ void ContextProviderCommandBuffer::OnMemoryAllocationChanged(
void ContextProviderCommandBuffer::InitializeCapabilities() {
Capabilities caps;
caps.gpu = context3d_->GetImplementation()->capabilities();
-
- 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;
}

Powered by Google App Engine
This is Rietveld 408576698