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

Unified Diff: cc/resources/tiling_set_eviction_queue.cc

Issue 800883002: cc: Optimise eviction tile priority queue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tiling_set_eviction_queue.cc
diff --git a/cc/resources/tiling_set_eviction_queue.cc b/cc/resources/tiling_set_eviction_queue.cc
index 18f659ed53719e85778ff251d620949d8dcdc07c..2db8964b6cd05060317db6a1da60ff88a7b7a248 100644
--- a/cc/resources/tiling_set_eviction_queue.cc
+++ b/cc/resources/tiling_set_eviction_queue.cc
@@ -220,9 +220,16 @@ bool TilingSetEvictionQueue::AdvanceToNextTilingRangeType() {
current_tiling_range_type_ = PictureLayerTilingSet::HIGH_RES;
return true;
case PictureLayerTilingSet::HIGH_RES:
+ // Process required for activation tiles (unless that has already been
+ // done for the current priority bin) if there is a tiling with required
+ // for activation tiles and that tiling may have required for activation
+ // tiles having the current priority bin (in the pending tree only NOW
+ // tiles may be required for activation).
if (!processing_tiling_with_required_for_activation_tiles_ &&
tiling_index_with_required_for_activation_tiles_ <
- tiling_set_->num_tilings()) {
+ tiling_set_->num_tilings() &&
+ (current_priority_bin_ == TilePriority::NOW ||
+ tree_ == ACTIVE_TREE)) {
processing_tiling_with_required_for_activation_tiles_ = true;
return true;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698