summaryrefslogtreecommitdiffstats
path: root/cc/test/test_tile_priorities.cc
diff options
context:
space:
mode:
authorvmpstr@chromium.org <vmpstr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-13 16:55:42 +0000
committervmpstr@chromium.org <vmpstr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-13 16:55:42 +0000
commit42f14bfcf12a0f25a37805027f4a25d99ccff297 (patch)
treed7c97531cfc404842ea1f8c6945789a2022dcc2f /cc/test/test_tile_priorities.cc
parentc7d7c12ffa6810ab1c1a063af244cef6d6c49f49 (diff)
downloadchromium_src-42f14bfcf12a0f25a37805027f4a25d99ccff297.zip
chromium_src-42f14bfcf12a0f25a37805027f4a25d99ccff297.tar.gz
chromium_src-42f14bfcf12a0f25a37805027f4a25d99ccff297.tar.bz2
cc: Simplify picture layer tiling update tile priorities.
This patch simplifies the priority math calculation and moves it into layers space. This makes the priority to be less correct, since we're inverse transforming the viewport into layer space instead of forward transforming tiles into screen space in all cases. In particular, with perspective and rotated layers, we will be marking more tiles as visible than before. This should be OK, since the amount of those layers in practice is limited. BUG=339142 Review URL: https://codereview.chromium.org/140513006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251064 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/test_tile_priorities.cc')
-rw-r--r--cc/test/test_tile_priorities.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/cc/test/test_tile_priorities.cc b/cc/test/test_tile_priorities.cc
index 9d3aae2..9f644d3 100644
--- a/cc/test/test_tile_priorities.cc
+++ b/cc/test/test_tile_priorities.cc
@@ -7,16 +7,16 @@
namespace cc {
TilePriorityForSoonBin::TilePriorityForSoonBin()
- : TilePriority(HIGH_RESOLUTION, 0.5, 300.0) {}
+ : TilePriority(HIGH_RESOLUTION, SOON, 300.0) {}
TilePriorityForEventualBin::TilePriorityForEventualBin()
- : TilePriority(HIGH_RESOLUTION, 2.0, 315.0) {}
+ : TilePriority(HIGH_RESOLUTION, EVENTUALLY, 315.0) {}
TilePriorityForNowBin::TilePriorityForNowBin()
- : TilePriority(HIGH_RESOLUTION, 0, 0) {}
+ : TilePriority(HIGH_RESOLUTION, NOW, 0) {}
TilePriorityRequiredForActivation::TilePriorityRequiredForActivation()
- : TilePriority(HIGH_RESOLUTION, 0, 0) {
+ : TilePriority(HIGH_RESOLUTION, NOW, 0) {
required_for_activation = true;
}