summaryrefslogtreecommitdiffstats
path: root/cc/picture_layer_tiling_set_unittest.cc
diff options
context:
space:
mode:
authorenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-09 23:54:31 +0000
committerenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-09 23:54:31 +0000
commit166db5c8936232da188fbae0c8b0932f92b1df0f (patch)
treeef2b4c2751d0524f83ca2e81572e0bed722e619e /cc/picture_layer_tiling_set_unittest.cc
parentf368a2e7f88cff715ed231b04381543e4eac2fbc (diff)
downloadchromium_src-166db5c8936232da188fbae0c8b0932f92b1df0f.zip
chromium_src-166db5c8936232da188fbae0c8b0932f92b1df0f.tar.gz
chromium_src-166db5c8936232da188fbae0c8b0932f92b1df0f.tar.bz2
cc: Generate tilings at other scales for impl-side painting
This patch adds infrastructure to make it easy for PictureLayerImpl to manage its set of tilings via PictureLayerImpl::ManageTiles(). The main functionality change is to additionally generate a low-res set of tiles (by default 1/8 resolution). Along with generating tilings at different scales, tile priorities now have the correct resolution set on them so that they can be prioritized correctly. There's a few small bugfixes added here as well for correctness, such as making sure that tilings are sorted in the PictureLayerTilingSet from highest to lowest. (This is the order in which tiles will be used.) It also correctly calculates a synthetic contents scale / content bounds for the PictureLayerImpl to support multiple active contents scales. R=nduca@chromium.org BUG=167300 Review URL: https://chromiumcodereview.appspot.com/11704002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175927 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/picture_layer_tiling_set_unittest.cc')
-rw-r--r--cc/picture_layer_tiling_set_unittest.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/cc/picture_layer_tiling_set_unittest.cc b/cc/picture_layer_tiling_set_unittest.cc
index 33a2f11..cbc9449 100644
--- a/cc/picture_layer_tiling_set_unittest.cc
+++ b/cc/picture_layer_tiling_set_unittest.cc
@@ -29,7 +29,11 @@ TEST(PictureLayerTilingSetTest, NoResources) {
gfx::Rect content_rect(gfx::Point(), content_bounds);
Region remaining(content_rect);
- PictureLayerTilingSet::Iterator iter(&set, contents_scale, content_rect);
+ PictureLayerTilingSet::Iterator iter(
+ &set,
+ contents_scale,
+ content_rect,
+ contents_scale);
for (; iter; ++iter) {
gfx::Rect geometry_rect = iter.geometry_rect();
EXPECT_TRUE(content_rect.Contains(geometry_rect));