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

Unified Diff: cc/resources/tiling_set_eviction_queue.cc

Issue 793573006: Refactoring for merging ManagedTileState into Tile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix a nit 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 | « cc/resources/tile_manager_unittest.cc ('k') | cc/test/fake_picture_layer_impl.cc » ('j') | 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 2db8964b6cd05060317db6a1da60ff88a7b7a248..f5b3b2c43b20ccb889d3ff81ff58e0971437ee4c 100644
--- a/cc/resources/tiling_set_eviction_queue.cc
+++ b/cc/resources/tiling_set_eviction_queue.cc
@@ -90,7 +90,7 @@ bool TilingSetEvictionQueue::AdvanceToNextEvictionTile() {
std::pair<int, int> next_index = spiral_iterator_.index();
Tile* tile = current_tiling_->TileAt(next_index.first, next_index.second);
++spiral_iterator_;
- if (!tile || !tile->HasResources())
+ if (!tile || !tile->HasResource())
continue;
if (skip_all_shared_tiles_ && tile->is_shared())
continue;
@@ -123,7 +123,7 @@ bool TilingSetEvictionQueue::AdvanceToNextEvictionTile() {
std::pair<int, int> next_index = visible_iterator_.index();
Tile* tile = current_tiling_->TileAt(next_index.first, next_index.second);
++visible_iterator_;
- if (!tile || !tile->HasResources())
+ if (!tile || !tile->HasResource())
continue;
if (skip_all_shared_tiles_ && tile->is_shared())
continue;
@@ -162,7 +162,7 @@ bool TilingSetEvictionQueue::AdvanceToNextEvictionTile() {
Tile* tile = unoccluded_now_tiles_.back();
unoccluded_now_tiles_.pop_back();
DCHECK(tile);
- if (!tile->HasResources())
+ if (!tile->HasResource())
continue;
current_tiling_->UpdateTileAndTwinPriority(tile);
if (skip_shared_out_of_order_tiles_ && IsSharedOutOfOrderTile(tile))
« no previous file with comments | « cc/resources/tile_manager_unittest.cc ('k') | cc/test/fake_picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698