Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(954)

Unified Diff: cc/test/fake_picture_pile_impl.cc

Issue 235753002: cc: Give TilingData a Rect instead of a Size (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/test/fake_picture_pile_impl.cc
diff --git a/cc/test/fake_picture_pile_impl.cc b/cc/test/fake_picture_pile_impl.cc
index 4bcf4b094266de0bc9a48f10d787f79e0edfba5b..abbf9d2506e61ca0babd28fb55ae7c9c3d654345 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);

Powered by Google App Engine
This is Rietveld 408576698