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

Unified Diff: cc/tile_manager.cc

Issue 12280021: cc: Don't discard tiles unless memory is low (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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/picture_layer_tiling.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tile_manager.cc
diff --git a/cc/tile_manager.cc b/cc/tile_manager.cc
index f4bf32b7c073e8c298cab9f22c49f82195964b6b..d1ae2f357ffe281fbed5b4322f2e4e8492f919df 100644
--- a/cc/tile_manager.cc
+++ b/cc/tile_manager.cc
@@ -48,11 +48,6 @@ inline TileManagerBin BinFromTilePriority(const TilePriority& prio) {
const double prepainting_window_time_seconds = 1.0;
const double backfling_guard_distance_pixels = 314.0;
- // Explicitly limit how far ahead we will prepaint to limit memory usage.
- if (prio.distance_to_visible_in_pixels >
- TilePriority::kMaxDistanceInContentSpace)
- return NEVER_BIN;
-
if (prio.time_to_visible_in_seconds == 0 ||
prio.distance_to_visible_in_pixels < backfling_guard_distance_pixels)
return NOW_BIN;
« no previous file with comments | « cc/picture_layer_tiling.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698