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

Unified Diff: cc/test/fake_picture_layer_tiling_client.cc

Issue 62283012: cc: Added tile bundles (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 7 years, 1 month 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_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 7ebd179ab52d857c42dc865270e54272d37844dc..e194cd42be788fe087a9bc2fb91039e46ba0420d 100644
--- a/cc/test/fake_picture_layer_tiling_client.cc
+++ b/cc/test/fake_picture_layer_tiling_client.cc
@@ -25,17 +25,23 @@ 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) {}
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) {}
FakePictureLayerTilingClient::~FakePictureLayerTilingClient() {
}
@@ -45,10 +51,18 @@ scoped_refptr<Tile> FakePictureLayerTilingClient::CreateTile(
gfx::Rect rect) {
if (!allow_create_tile_)
return scoped_refptr<Tile>();
- return tile_manager_->CreateTile(
+ return tile_manager()->CreateTile(
pile_.get(), tile_size_, rect, gfx::Rect(), 1, 0, 0, true);
}
+scoped_refptr<TileBundle> FakePictureLayerTilingClient::CreateTileBundle(
+ int offset_x,
+ int offset_y,
+ int width,
+ int height) {
+ return tile_manager()->CreateTileBundle(offset_x, offset_y, width, height);
+}
+
void FakePictureLayerTilingClient::SetTileSize(gfx::Size tile_size) {
tile_size_ = tile_size;
}

Powered by Google App Engine
This is Rietveld 408576698