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

Unified Diff: cc/resources/eviction_tile_priority_queue.cc

Issue 1051473002: cc: Switch tiling set eviction queue to consider combined priority. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up Created 5 years, 8 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
« no previous file with comments | « cc/resources/eviction_tile_priority_queue.h ('k') | cc/resources/tiling_set_eviction_queue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/eviction_tile_priority_queue.cc
diff --git a/cc/resources/eviction_tile_priority_queue.cc b/cc/resources/eviction_tile_priority_queue.cc
index 503b26d347fd5769005e58afbb4de912f3178e1c..3f5546958f8d7de2c0e118b4b355e70c8e3ac99b 100644
--- a/cc/resources/eviction_tile_priority_queue.cc
+++ b/cc/resources/eviction_tile_priority_queue.cc
@@ -89,10 +89,8 @@ void EvictionTilePriorityQueue::Build(
for (std::vector<PictureLayerImpl::Pair>::const_iterator it =
paired_layers.begin();
- it != paired_layers.end();
- ++it) {
- paired_queues_.push_back(
- make_scoped_ptr(new PairedTilingSetQueue(*it, tree_priority_)));
+ it != paired_layers.end(); ++it) {
+ paired_queues_.push_back(make_scoped_ptr(new PairedTilingSetQueue(*it)));
}
paired_queues_.make_heap(EvictionOrderComparator(tree_priority_));
@@ -120,17 +118,16 @@ EvictionTilePriorityQueue::PairedTilingSetQueue::PairedTilingSetQueue() {
}
EvictionTilePriorityQueue::PairedTilingSetQueue::PairedTilingSetQueue(
- const PictureLayerImpl::Pair& layer_pair,
- TreePriority tree_priority) {
+ const PictureLayerImpl::Pair& layer_pair) {
bool skip_shared_out_of_order_tiles = layer_pair.active && layer_pair.pending;
if (layer_pair.active) {
active_queue = make_scoped_ptr(new TilingSetEvictionQueue(
- layer_pair.active->picture_layer_tiling_set(), tree_priority,
+ layer_pair.active->picture_layer_tiling_set(),
skip_shared_out_of_order_tiles));
}
if (layer_pair.pending) {
pending_queue = make_scoped_ptr(new TilingSetEvictionQueue(
- layer_pair.pending->picture_layer_tiling_set(), tree_priority,
+ layer_pair.pending->picture_layer_tiling_set(),
skip_shared_out_of_order_tiles));
}
}
« no previous file with comments | « cc/resources/eviction_tile_priority_queue.h ('k') | cc/resources/tiling_set_eviction_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698