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

Unified Diff: cc/tiles/tile_manager_unittest.cc

Issue 2404423002: cc: Make pending visible rect active tree tiles be in the NOW bin. (Closed)
Patch Set: Created 4 years, 2 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/tiles/raster_tile_priority_queue_all.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/tile_manager_unittest.cc
diff --git a/cc/tiles/tile_manager_unittest.cc b/cc/tiles/tile_manager_unittest.cc
index 5cb954fd41459669def103cf049cbeb7b12f206d..81ac0f40ad7aa337b9b7e6a27a55c71964e196a0 100644
--- a/cc/tiles/tile_manager_unittest.cc
+++ b/cc/tiles/tile_manager_unittest.cc
@@ -552,7 +552,7 @@ TEST_F(TileManagerTilePriorityQueueTest, RasterTilePriorityQueueInvalidation) {
actual_required_for_activation_tiles);
}
-TEST_F(TileManagerTilePriorityQueueTest, ActivationComesBeforeEventually) {
+TEST_F(TileManagerTilePriorityQueueTest, ActivationComesBeforeSoon) {
host_impl()->AdvanceToNextFrame(base::TimeDelta::FromMilliseconds(1));
gfx::Size layer_bounds(1000, 1000);
@@ -581,12 +581,11 @@ TEST_F(TileManagerTilePriorityQueueTest, ActivationComesBeforeEventually) {
SMOOTHNESS_TAKES_PRIORITY, RasterTilePriorityQueue::Type::ALL));
EXPECT_FALSE(queue->IsEmpty());
- // Get all the tiles that are NOW or SOON and make sure they are ready to
- // draw.
+ // Get all the tiles that are NOW and make sure they are ready to draw.
std::vector<Tile*> all_tiles;
while (!queue->IsEmpty()) {
PrioritizedTile prioritized_tile = queue->Top();
- if (prioritized_tile.priority().priority_bin >= TilePriority::EVENTUALLY)
+ if (prioritized_tile.priority().priority_bin >= TilePriority::SOON)
break;
all_tiles.push_back(prioritized_tile.tile());
« no previous file with comments | « cc/tiles/raster_tile_priority_queue_all.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698