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

Unified Diff: cc/test/fake_picture_layer_tiling_client.h

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_impl.cc ('k') | cc/test/fake_picture_layer_tiling_client.cc » ('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.h
===================================================================
--- cc/test/fake_picture_layer_tiling_client.h (revision 243316)
+++ cc/test/fake_picture_layer_tiling_client.h (working copy)
@@ -16,16 +16,13 @@
class FakePictureLayerTilingClient : public PictureLayerTilingClient {
public:
- explicit FakePictureLayerTilingClient(TileManager* tile_manager);
+ FakePictureLayerTilingClient();
+ explicit FakePictureLayerTilingClient(ResourceProvider* resource_provider);
virtual ~FakePictureLayerTilingClient();
// PictureLayerTilingClient implementation.
virtual scoped_refptr<Tile> CreateTile(
PictureLayerTiling* tiling, gfx::Rect rect) OVERRIDE;
- virtual scoped_refptr<TileBundle> CreateTileBundle(int offset_x,
- int offset_y,
- int width,
- int height) OVERRIDE;
virtual void UpdatePile(Tile* tile) OVERRIDE {}
virtual gfx::Size CalculateTileSize(
gfx::Size content_bounds) const OVERRIDE;
@@ -45,19 +42,18 @@
void set_invalidation(const Region& region) { invalidation_ = region; }
TileManager* tile_manager() const {
- return tile_manager_;
+ return tile_manager_.get();
}
protected:
- TileManager* tile_manager_;
+ FakeTileManagerClient tile_manager_client_;
+ scoped_ptr<TileManager> tile_manager_;
scoped_refptr<PicturePileImpl> pile_;
gfx::Size tile_size_;
PictureLayerTiling* twin_tiling_;
gfx::Rect text_rect_;
bool allow_create_tile_;
Region invalidation_;
- bool is_active_;
- bool is_pending_;
};
} // namespace cc
« no previous file with comments | « cc/test/fake_picture_layer_impl.cc ('k') | cc/test/fake_picture_layer_tiling_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698