summaryrefslogtreecommitdiffstats
path: root/cc/test/fake_picture_pile_impl.cc
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-16 06:10:27 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-16 06:10:27 +0000
commita108f5db4fd7067fc19763db044606f0cef491cd (patch)
tree02ef60d990369bf8972389c6eae883b147b6d57f /cc/test/fake_picture_pile_impl.cc
parentfb7c8ae00299feab2716e06762dff7535b70cfa4 (diff)
downloadchromium_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/test/fake_picture_pile_impl.cc')
-rw-r--r--cc/test/fake_picture_pile_impl.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/cc/test/fake_picture_pile_impl.cc b/cc/test/fake_picture_pile_impl.cc
index dd659a5..630bb75 100644
--- a/cc/test/fake_picture_pile_impl.cc
+++ b/cc/test/fake_picture_pile_impl.cc
@@ -20,7 +20,7 @@ scoped_refptr<FakePicturePileImpl> FakePicturePileImpl::CreateFilledPile(
const gfx::Size& tile_size,
const gfx::Size& layer_bounds) {
scoped_refptr<FakePicturePileImpl> pile(new FakePicturePileImpl());
- pile->tiling().SetTilingRect(gfx::Rect(layer_bounds));
+ pile->tiling().SetTilingSize(layer_bounds);
pile->tiling().SetMaxTextureSize(tile_size);
pile->SetTileGridSize(ImplSidePaintingSettings().default_tile_size);
pile->recorded_viewport_ = gfx::Rect(layer_bounds);
@@ -36,7 +36,7 @@ scoped_refptr<FakePicturePileImpl> FakePicturePileImpl::CreateEmptyPile(
const gfx::Size& tile_size,
const gfx::Size& layer_bounds) {
scoped_refptr<FakePicturePileImpl> pile(new FakePicturePileImpl());
- pile->tiling().SetTilingRect(gfx::Rect(layer_bounds));
+ pile->tiling().SetTilingSize(layer_bounds);
pile->tiling().SetMaxTextureSize(tile_size);
pile->SetTileGridSize(ImplSidePaintingSettings().default_tile_size);
pile->recorded_viewport_ = gfx::Rect();
@@ -49,7 +49,7 @@ FakePicturePileImpl::CreateEmptyPileThatThinksItHasRecordings(
const gfx::Size& tile_size,
const gfx::Size& layer_bounds) {
scoped_refptr<FakePicturePileImpl> pile(new FakePicturePileImpl());
- pile->tiling().SetTilingRect(gfx::Rect(layer_bounds));
+ pile->tiling().SetTilingSize(layer_bounds);
pile->tiling().SetMaxTextureSize(tile_size);
pile->SetTileGridSize(ImplSidePaintingSettings().default_tile_size);
// This simulates a false positive for this flag.
@@ -63,7 +63,7 @@ FakePicturePileImpl::CreateInfiniteFilledPile() {
scoped_refptr<FakePicturePileImpl> pile(new FakePicturePileImpl());
gfx::Size size(std::numeric_limits<int>::max(),
std::numeric_limits<int>::max());
- pile->tiling().SetTilingRect(gfx::Rect(size));
+ pile->tiling().SetTilingSize(size);
pile->tiling().SetMaxTextureSize(size);
pile->SetTileGridSize(size);
pile->recorded_viewport_ = gfx::Rect(size);