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

Unified Diff: cc/resources/tile_priority.h

Issue 246673005: cc: Start using raster/eviction iterators in tile manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update Created 6 years, 6 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/resources/tile_priority.h
diff --git a/cc/resources/tile_priority.h b/cc/resources/tile_priority.h
index f8ac9c6c7b0e7a148e929b10a6ab8fbe0392cd24..1556b4e3a7bb48dfdb32cfd2df32c5ca5023dc64 100644
--- a/cc/resources/tile_priority.h
+++ b/cc/resources/tile_priority.h
@@ -122,11 +122,6 @@ enum TileMemoryLimitPolicy {
// You're the only thing in town. Go crazy.
ALLOW_ANYTHING = 3, // Venti.
-
- NUM_TILE_MEMORY_LIMIT_POLICIES = 4,
-
- // NOTE: Be sure to update TreePriorityAsValue and kBinPolicyMap when adding
- // or reordering fields.
};
scoped_ptr<base::Value> TileMemoryLimitPolicyAsValue(
TileMemoryLimitPolicy policy);
@@ -135,8 +130,6 @@ enum TreePriority {
SAME_PRIORITY_FOR_BOTH_TREES,
SMOOTHNESS_TAKES_PRIORITY,
NEW_CONTENT_TAKES_PRIORITY
-
- // Be sure to update TreePriorityAsValue when adding new fields.
};
scoped_ptr<base::Value> TreePriorityAsValue(TreePriority prio);
@@ -157,17 +150,6 @@ class GlobalStateThatImpactsTilePriority {
TreePriority tree_priority;
- bool operator==(const GlobalStateThatImpactsTilePriority& other) const {
- return memory_limit_policy == other.memory_limit_policy &&
- soft_memory_limit_in_bytes == other.soft_memory_limit_in_bytes &&
- hard_memory_limit_in_bytes == other.hard_memory_limit_in_bytes &&
- num_resources_limit == other.num_resources_limit &&
- tree_priority == other.tree_priority;
- }
- bool operator!=(const GlobalStateThatImpactsTilePriority& other) const {
- return !(*this == other);
- }
-
scoped_ptr<base::Value> AsValue() const;
};

Powered by Google App Engine
This is Rietveld 408576698