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

Unified Diff: cc/output/managed_memory_policy.cc

Issue 643993005: Remove limit on number of resources in cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 6 years, 2 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: cc/output/managed_memory_policy.cc
diff --git a/cc/output/managed_memory_policy.cc b/cc/output/managed_memory_policy.cc
index 049d2b03f9fcd14768e830c1c931d9a90ffc74da..551c8841f08e74218da9d0c09c1bc2189a701ee5 100644
--- a/cc/output/managed_memory_policy.cc
+++ b/cc/output/managed_memory_policy.cc
@@ -9,33 +9,29 @@
namespace cc {
-const size_t ManagedMemoryPolicy::kDefaultNumResourcesLimit = 10 * 1000 * 1000;
-
using gpu::MemoryAllocation;
ManagedMemoryPolicy::ManagedMemoryPolicy(size_t bytes_limit_when_visible)
: bytes_limit_when_visible(bytes_limit_when_visible),
- priority_cutoff_when_visible(MemoryAllocation::CUTOFF_ALLOW_EVERYTHING),
- num_resources_limit(kDefaultNumResourcesLimit) {}
+ priority_cutoff_when_visible(MemoryAllocation::CUTOFF_ALLOW_EVERYTHING) {
+}
ManagedMemoryPolicy::ManagedMemoryPolicy(
const gpu::MemoryAllocation& allocation)
: bytes_limit_when_visible(allocation.bytes_limit_when_visible),
- priority_cutoff_when_visible(allocation.priority_cutoff_when_visible),
- num_resources_limit(kDefaultNumResourcesLimit) {}
+ priority_cutoff_when_visible(allocation.priority_cutoff_when_visible) {
+}
ManagedMemoryPolicy::ManagedMemoryPolicy(
size_t bytes_limit_when_visible,
- MemoryAllocation::PriorityCutoff priority_cutoff_when_visible,
- size_t num_resources_limit)
+ MemoryAllocation::PriorityCutoff priority_cutoff_when_visible)
: bytes_limit_when_visible(bytes_limit_when_visible),
- priority_cutoff_when_visible(priority_cutoff_when_visible),
- num_resources_limit(num_resources_limit) {}
+ priority_cutoff_when_visible(priority_cutoff_when_visible) {
+}
bool ManagedMemoryPolicy::operator==(const ManagedMemoryPolicy& other) const {
return bytes_limit_when_visible == other.bytes_limit_when_visible &&
- priority_cutoff_when_visible == other.priority_cutoff_when_visible &&
- num_resources_limit == other.num_resources_limit;
+ priority_cutoff_when_visible == other.priority_cutoff_when_visible;
}
bool ManagedMemoryPolicy::operator!=(const ManagedMemoryPolicy& other) const {

Powered by Google App Engine
This is Rietveld 408576698