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

Unified Diff: cc/tile_priority.cc

Issue 12287027: cc: Compute the inflated rect to cover a fixed number of tiles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved constant 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
« cc/picture_layer_tiling.cc ('K') | « cc/tile_priority.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tile_priority.cc
diff --git a/cc/tile_priority.cc b/cc/tile_priority.cc
index 128205313e8bf66dd61d90d9923846d0a8f05a27..760c091392393b682592b7141ca6ddd8f85b80fc 100644
--- a/cc/tile_priority.cc
+++ b/cc/tile_priority.cc
@@ -56,6 +56,10 @@ namespace cc {
const float TilePriority::kMaxDistanceInContentSpace = 4096.0f;
+// At 256x256 tiles, 80 tiles cover an area of ~1280x4906 pixels.
+const int64 TilePriority::
+ kNumTilesToCoverWithInflatedViewportRectForPrioritization = 80;
+
scoped_ptr<base::Value> WhichTreeAsValue(WhichTree tree) {
switch (tree) {
case ACTIVE_TREE:
« cc/picture_layer_tiling.cc ('K') | « cc/tile_priority.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698