summaryrefslogtreecommitdiffstats
path: root/cc/resources/picture_layer_tiling_unittest.cc
diff options
context:
space:
mode:
authorvmpstr <vmpstr@chromium.org>2014-09-29 08:45:27 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-29 15:45:37 +0000
commit488516f064c0f28e21d7748d583e4d61affafe89 (patch)
treeaaa3bf3c3a4a413f807d63d3aa462e02c0cf5885 /cc/resources/picture_layer_tiling_unittest.cc
parentfa052070ded331c02f881cbc8332090986bc8f53 (diff)
downloadchromium_src-488516f064c0f28e21d7748d583e4d61affafe89.zip
chromium_src-488516f064c0f28e21d7748d583e4d61affafe89.tar.gz
chromium_src-488516f064c0f28e21d7748d583e4d61affafe89.tar.bz2
cc: Remove low quality mode and cleanup tile versions.
This patch removes low quality mode for low resolution tiles. It also cleansup some logic with tile versions, since there's only one now. As a follow-up we can see if we should move the tile version stuff onto tile directly, although I kind of prefer having a separate class just for managing what mode we're drawing. BUG=417876 R=enne, reveman, danakj Review URL: https://codereview.chromium.org/603683006 Cr-Commit-Position: refs/heads/master@{#297181}
Diffstat (limited to 'cc/resources/picture_layer_tiling_unittest.cc')
-rw-r--r--cc/resources/picture_layer_tiling_unittest.cc12
1 files changed, 4 insertions, 8 deletions
diff --git a/cc/resources/picture_layer_tiling_unittest.cc b/cc/resources/picture_layer_tiling_unittest.cc
index e64191d..1a242a3 100644
--- a/cc/resources/picture_layer_tiling_unittest.cc
+++ b/cc/resources/picture_layer_tiling_unittest.cc
@@ -1116,10 +1116,8 @@ TEST(PictureLayerTilingTest, TilingRasterTileIteratorStaticViewport) {
// On the second iteration, mark everything as ready to draw (solid color).
if (i == 1) {
- ManagedTileState::TileVersion& tile_version =
- last_tile->GetTileVersionForTesting(
- last_tile->DetermineRasterModeForTree(ACTIVE_TREE));
- tile_version.SetSolidColorForTesting(SK_ColorRED);
+ ManagedTileState::DrawInfo& draw_info = last_tile->draw_info();
+ draw_info.SetSolidColorForTesting(SK_ColorRED);
}
++it;
int eventually_bin_order_correct_count = 0;
@@ -1154,10 +1152,8 @@ TEST(PictureLayerTilingTest, TilingRasterTileIteratorStaticViewport) {
// On the second iteration, mark everything as ready to draw (solid
// color).
if (i == 1) {
- ManagedTileState::TileVersion& tile_version =
- last_tile->GetTileVersionForTesting(
- last_tile->DetermineRasterModeForTree(ACTIVE_TREE));
- tile_version.SetSolidColorForTesting(SK_ColorRED);
+ ManagedTileState::DrawInfo& draw_info = last_tile->draw_info();
+ draw_info.SetSolidColorForTesting(SK_ColorRED);
}
}