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

Unified Diff: cc/test/fake_picture_layer_tiling_client.cc

Issue 107413008: Merge 241994 "Revert "cc: Added tile bundles"" (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1750/src/
Patch Set: Created 6 years, 11 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
« no previous file with comments | « cc/test/fake_picture_layer_tiling_client.h ('k') | cc/test/fake_tile_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_picture_layer_tiling_client.cc
===================================================================
--- cc/test/fake_picture_layer_tiling_client.cc (revision 243316)
+++ cc/test/fake_picture_layer_tiling_client.cc (working copy)
@@ -23,14 +23,19 @@
virtual ~FakeInfinitePicturePileImpl() {}
};
+FakePictureLayerTilingClient::FakePictureLayerTilingClient()
+ : tile_manager_(new FakeTileManager(&tile_manager_client_)),
+ pile_(new FakeInfinitePicturePileImpl()),
+ twin_tiling_(NULL),
+ allow_create_tile_(true) {}
+
FakePictureLayerTilingClient::FakePictureLayerTilingClient(
- TileManager* tile_manager)
- : tile_manager_(tile_manager),
+ ResourceProvider* resource_provider)
+ : tile_manager_(
+ new FakeTileManager(&tile_manager_client_, resource_provider)),
pile_(new FakeInfinitePicturePileImpl()),
twin_tiling_(NULL),
- allow_create_tile_(true),
- is_active_(false),
- is_pending_(false) {}
+ allow_create_tile_(true) {}
FakePictureLayerTilingClient::~FakePictureLayerTilingClient() {
}
@@ -40,18 +45,10 @@
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, Tile::USE_LCD_TEXT);
}
-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;
}
« no previous file with comments | « cc/test/fake_picture_layer_tiling_client.h ('k') | cc/test/fake_tile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698