summaryrefslogtreecommitdiffstats
path: root/cc/test/test_tile_priorities.cc
diff options
context:
space:
mode:
authorreveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-22 03:48:26 +0000
committerreveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-22 03:48:26 +0000
commit33b1ce0e24c940414ddbec05c1c292ffcf6d4a04 (patch)
treebd8c559a7480d677a10df0b79ad7df54f650321c /cc/test/test_tile_priorities.cc
parent68a2186a20cedea2de8561e3a24e34ad1e12c4a7 (diff)
downloadchromium_src-33b1ce0e24c940414ddbec05c1c292ffcf6d4a04.zip
chromium_src-33b1ce0e24c940414ddbec05c1c292ffcf6d4a04.tar.gz
chromium_src-33b1ce0e24c940414ddbec05c1c292ffcf6d4a04.tar.bz2
cc: Prevent tiles that are required for activation from being placed in NEVER_BIN.
Some tiles that are required for activation might never be initialized because we move them into EVENTUALLY_BIN before making adjustments based on the memory policy. This is because EVENTUALLY_BIN will map to NEVER_BIN when ALLOW_PREPAINT_ONLY or ALLOW_ABSOLUTE_MINIMUM is the current memory policy. This is fixed by moving low-res tiles into EVENTUALLY_BIN after making adjustments based on current memory policy. BUG=375801 TEST=cc_unittests --gtest_filter=TileManagerTests/TileManagerTest.EnoughMemoryPendingLowResAllowAbsoluteMinimum/* Review URL: https://codereview.chromium.org/291093008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272077 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/test_tile_priorities.cc')
-rw-r--r--cc/test/test_tile_priorities.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/cc/test/test_tile_priorities.cc b/cc/test/test_tile_priorities.cc
index 9f644d3..4de76ba 100644
--- a/cc/test/test_tile_priorities.cc
+++ b/cc/test/test_tile_priorities.cc
@@ -20,4 +20,7 @@ TilePriorityRequiredForActivation::TilePriorityRequiredForActivation()
required_for_activation = true;
}
+TilePriorityLowRes::TilePriorityLowRes()
+ : TilePriority(LOW_RESOLUTION, NOW, 0) {}
+
} // namespace cc