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

Unified Diff: cc/resources/tile_manager.cc

Issue 1139673008: cc: Make IsReadyToDraw/NeedsRaster usage consistent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/tile_draw_info.cc ('k') | cc/resources/tile_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tile_manager.cc
diff --git a/cc/resources/tile_manager.cc b/cc/resources/tile_manager.cc
index e28d8ceaac90990a95627cb4d8fafa3ebc2f1fef..6cd02399863ba5f711017518f7c450a28875fa07 100644
--- a/cc/resources/tile_manager.cc
+++ b/cc/resources/tile_manager.cc
@@ -275,7 +275,7 @@ void TileManager::CleanUpReleasedTiles() {
continue;
}
- DCHECK(!tile->HasResource());
+ DCHECK(!tile->draw_info().has_resource());
DCHECK(tiles_.find(tile->id()) != tiles_.end());
tiles_.erase(tile->id());
@@ -582,7 +582,7 @@ void TileManager::FreeResourcesForTile(Tile* tile) {
void TileManager::FreeResourcesForTileAndNotifyClientIfTileWasReadyToDraw(
Tile* tile) {
- bool was_ready_to_draw = tile->IsReadyToDraw();
+ bool was_ready_to_draw = tile->draw_info().IsReadyToDraw();
FreeResourcesForTile(tile);
if (was_ready_to_draw)
client_->NotifyTileStateChanged(tile);
@@ -783,7 +783,7 @@ bool TileManager::AreRequiredTilesReadyToDraw(
// have to iterate the queue to check whether the required tiles are ready to
// draw.
for (; !raster_priority_queue->IsEmpty(); raster_priority_queue->Pop()) {
- if (!raster_priority_queue->Top().tile()->IsReadyToDraw())
+ if (!raster_priority_queue->Top().tile()->draw_info().IsReadyToDraw())
return false;
}
@@ -792,7 +792,8 @@ bool TileManager::AreRequiredTilesReadyToDraw(
client_->BuildRasterQueue(global_state_.tree_priority, type));
for (; !all_queue->IsEmpty(); all_queue->Pop()) {
Tile* tile = all_queue->Top().tile();
- DCHECK_IMPLIES(tile->required_for_activation(), tile->IsReadyToDraw());
+ DCHECK_IMPLIES(tile->required_for_activation(),
+ tile->draw_info().IsReadyToDraw());
}
#endif
return true;
« no previous file with comments | « cc/resources/tile_draw_info.cc ('k') | cc/resources/tile_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698