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

Unified Diff: cc/resources/tile_manager.cc

Issue 651503004: cc: Bump up pending tree now tiles order for smoothness mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 6 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/resources/raster_tile_priority_queue.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 c9fab0fc06034c14f840772b76aadcf7972a9fad..d7a61c7478949e0b28ab91459ccd79b3ef1dabc3 100644
--- a/cc/resources/tile_manager.cc
+++ b/cc/resources/tile_manager.cc
@@ -500,10 +500,8 @@ bool TileManager::FreeTileResourcesWithLowerPriorityUntilUsageIsWithinLimit(
return false;
Tile* tile = eviction_priority_queue_.Top();
- if (!other_priority.IsHigherPriorityThan(
- tile->priority_for_tree_priority(global_state_.tree_priority))) {
+ if (!other_priority.IsHigherPriorityThan(tile->combined_priority()))
return false;
- }
*usage -= MemoryUsage::FromTile(tile);
FreeResourcesForTileAndNotifyClientIfTileWasReadyToDraw(tile);
@@ -560,8 +558,7 @@ void TileManager::AssignGpuMemoryToTiles(
while (!raster_priority_queue_.IsEmpty()) {
Tile* tile = raster_priority_queue_.Top();
- TilePriority priority =
- tile->priority_for_tree_priority(global_state_.tree_priority);
+ TilePriority priority = tile->combined_priority();
if (TilePriorityViolatesMemoryPolicy(priority))
break;
« no previous file with comments | « cc/resources/raster_tile_priority_queue.cc ('k') | cc/resources/tile_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698