| Index: cc/test/fake_picture_layer_tiling_client.cc
|
| diff --git a/cc/test/fake_picture_layer_tiling_client.cc b/cc/test/fake_picture_layer_tiling_client.cc
|
| index 597e0d8d32d9f54e98aa945b8e4ed0dea40ce31b..7f8dbc43f7579165be8ca92fdb8f14ab10dfa873 100644
|
| --- a/cc/test/fake_picture_layer_tiling_client.cc
|
| +++ b/cc/test/fake_picture_layer_tiling_client.cc
|
| @@ -25,17 +25,25 @@ class FakeInfinitePicturePileImpl : public PicturePileImpl {
|
|
|
| FakePictureLayerTilingClient::FakePictureLayerTilingClient()
|
| : tile_manager_(new FakeTileManager(&tile_manager_client_)),
|
| + set_tile_manager_(NULL),
|
| pile_(new FakeInfinitePicturePileImpl()),
|
| twin_tiling_(NULL),
|
| - allow_create_tile_(true) {}
|
| + allow_create_tile_(true),
|
| + is_active_(false),
|
| + is_pending_(false),
|
| + is_recycled_(false) {}
|
|
|
| FakePictureLayerTilingClient::FakePictureLayerTilingClient(
|
| ResourceProvider* resource_provider)
|
| : tile_manager_(
|
| new FakeTileManager(&tile_manager_client_, resource_provider)),
|
| + set_tile_manager_(NULL),
|
| pile_(new FakeInfinitePicturePileImpl()),
|
| twin_tiling_(NULL),
|
| - allow_create_tile_(true) {}
|
| + allow_create_tile_(true),
|
| + is_active_(false),
|
| + is_pending_(false),
|
| + is_recycled_(false) {}
|
|
|
| FakePictureLayerTilingClient::~FakePictureLayerTilingClient() {
|
| }
|
| @@ -49,6 +57,17 @@ scoped_refptr<Tile> FakePictureLayerTilingClient::CreateTile(
|
| pile_.get(), tile_size_, rect, gfx::Rect(), 1, 0, 0, true);
|
| }
|
|
|
| +scoped_refptr<TileBundle> FakePictureLayerTilingClient::CreateTileBundle(
|
| + int width,
|
| + int height,
|
| + int offset_x,
|
| + int offset_y) {
|
| + scoped_refptr<TileBundle> bundle =
|
| + tile_manager_->CreateTileBundle(width, height, offset_x, offset_y);
|
| + bundle->SetClient(this);
|
| + return bundle;
|
| +}
|
| +
|
| void FakePictureLayerTilingClient::SetTileSize(gfx::Size tile_size) {
|
| tile_size_ = tile_size;
|
| }
|
|
|