diff options
author | ernstm@chromium.org <ernstm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-16 02:54:48 +0000 |
---|---|---|
committer | ernstm@chromium.org <ernstm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-16 02:54:48 +0000 |
commit | 4c159895cd87d43f24d94954d357686f0fae7106 (patch) | |
tree | b005206a7ca1d61456fe7d0d14912008c0fce84c /cc/test/fake_picture_pile_impl.cc | |
parent | b8c35dd9b9045200f23e4162c3449081b9693cdb (diff) | |
download | chromium_src-4c159895cd87d43f24d94954d357686f0fae7106.zip chromium_src-4c159895cd87d43f24d94954d357686f0fae7106.tar.gz chromium_src-4c159895cd87d43f24d94954d357686f0fae7106.tar.bz2 |
cc: Give TilingData a Rect instead of a Size
This patch changes the assumption that the tiling covers the entire layer. It
can now cover an arbitray sub-rect, called the tiling_rect. This will be used
to implement viewport tiling in a separate patch.
R=enne@chromium.org
BUG=362668
Review URL: https://codereview.chromium.org/235753002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@264083 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_picture_pile_impl.cc')
-rw-r--r-- | cc/test/fake_picture_pile_impl.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cc/test/fake_picture_pile_impl.cc b/cc/test/fake_picture_pile_impl.cc index f2af98b..57a5074 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().SetTotalSize(layer_bounds); + pile->tiling().SetTilingRect(gfx::Rect(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().SetTotalSize(layer_bounds); + pile->tiling().SetTilingRect(gfx::Rect(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().SetTotalSize(layer_bounds); + pile->tiling().SetTilingRect(gfx::Rect(layer_bounds)); pile->tiling().SetMaxTextureSize(tile_size); pile->SetTileGridSize(ImplSidePaintingSettings().default_tile_size); // This simulates a false positive for this flag. @@ -63,8 +63,8 @@ FakePicturePileImpl::CreateInfiniteFilledPile() { scoped_refptr<FakePicturePileImpl> pile(new FakePicturePileImpl()); gfx::Size size(std::numeric_limits<int>::max(), std::numeric_limits<int>::max()); - pile->Resize(size); - pile->tiling().SetTotalSize(size); + pile->SetTilingRect(gfx::Rect(size)); + pile->tiling().SetTilingRect(gfx::Rect(size)); pile->tiling().SetMaxTextureSize(size); pile->SetTileGridSize(size); pile->recorded_viewport_ = gfx::Rect(size); |