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);
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();
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.
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);
gfx::Rect bounds(tiling().TileBounds(x, y));
bounds.Inset(-buffer_pixels(), -buffer_pixels());
- scoped_refptr<Picture> picture(
- Picture::Create(bounds, &client_, tile_grid_info_, true, 0));
+ scoped_refptr<Picture> picture(Picture::Create(
+ bounds, &client_, tile_grid_info_, true, 0, Picture::RECORD_NORMALLY));
picture_map_[std::pair<int, int>(x, y)].SetPicture(picture);
EXPECT_TRUE(HasRecordingAt(x, y));