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

Unified Diff: cc/tiles/tile_manager.cc

Issue 2566603004: cc: Add a tile manager check to try and diagnose renderer hangs. (Closed)
Patch Set: Created 4 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/tiles/tile_manager.cc
diff --git a/cc/tiles/tile_manager.cc b/cc/tiles/tile_manager.cc
index 08796a32f949f1064dec57a5b0a9883a89e990ab..5a9d737e491e057ada0830fc93f0eb39110e5ed4 100644
--- a/cc/tiles/tile_manager.cc
+++ b/cc/tiles/tile_manager.cc
@@ -1071,7 +1071,10 @@ 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()->draw_info().IsReadyToDraw())
+ const auto& prioritized_tile = raster_priority_queue->Top();
+ // TODO(vmpstr): Check to debug crbug.com/622080. Remove when fixed.
sunnyps 2016/12/10 01:29:47 Shouldn't we do this check only for the required f
+ CHECK_EQ(prioritized_tile.priority().priority_bin, TilePriority::NOW);
+ if (!prioritized_tile.tile()->draw_info().IsReadyToDraw())
return false;
}
« 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