diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-16 06:10:27 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-16 06:10:27 +0000 |
commit | a108f5db4fd7067fc19763db044606f0cef491cd (patch) | |
tree | 02ef60d990369bf8972389c6eae883b147b6d57f /cc/resources/picture_layer_tiling_unittest.cc | |
parent | fb7c8ae00299feab2716e06762dff7535b70cfa4 (diff) | |
download | chromium_src-a108f5db4fd7067fc19763db044606f0cef491cd.zip chromium_src-a108f5db4fd7067fc19763db044606f0cef491cd.tar.gz chromium_src-a108f5db4fd7067fc19763db044606f0cef491cd.tar.bz2 |
cc: Give TilingData back a Size instead of a Rect.
This is a semi-revert of https://codereview.chromium.org/235753002/.
Since it seems that we are not using the ability of TilingData to
have a non-zero origin, having a Rect is not needed and less clear
what is going on.
R=ernstm@chromium.org
BUG=362668,386998
Review URL: https://codereview.chromium.org/389973004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283374 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/resources/picture_layer_tiling_unittest.cc')
-rw-r--r-- | cc/resources/picture_layer_tiling_unittest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/resources/picture_layer_tiling_unittest.cc b/cc/resources/picture_layer_tiling_unittest.cc index 96862ec..86f60ac 100644 --- a/cc/resources/picture_layer_tiling_unittest.cc +++ b/cc/resources/picture_layer_tiling_unittest.cc @@ -172,7 +172,7 @@ class PictureLayerTilingIteratorTest : public testing::Test { const gfx::Rect& dest_rect) { float dest_to_contents_scale = tiling_->contents_scale() / rect_scale; gfx::Rect clamped_rect = gfx::ScaleToEnclosingRect( - tiling_->TilingRect(), 1.f / dest_to_contents_scale); + gfx::Rect(tiling_->tiling_size()), 1.f / dest_to_contents_scale); clamped_rect.Intersect(dest_rect); VerifyTilesExactlyCoverRect(rect_scale, dest_rect, clamped_rect); } |