summaryrefslogtreecommitdiffstats
path: root/cc/test/fake_picture_layer_tiling_client.h
diff options
context:
space:
mode:
authorvmpstr@chromium.org <vmpstr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-20 00:35:38 +0000
committervmpstr@chromium.org <vmpstr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-20 00:35:38 +0000
commit399971e4b85fa033401219b919b036b3c908f06a (patch)
tree3c258dd0f3c30a7ec8dd86cb8d9ec351fc3c73d1 /cc/test/fake_picture_layer_tiling_client.h
parent46701663aaa6a4a6ea81cd663c03fa2f3f6ca1ca (diff)
downloadchromium_src-399971e4b85fa033401219b919b036b3c908f06a.zip
chromium_src-399971e4b85fa033401219b919b036b3c908f06a.tar.gz
chromium_src-399971e4b85fa033401219b919b036b3c908f06a.tar.bz2
Revert "cc: Added tile bundles"
This reverts commit 24835e9056711da23091ce0116e7ca41d1bdf279. Revert "cc: Reset tiling size upon destruction." This reverts commit 86b1819ea0f9e1ff666b89835957ab1ad68ef706. BUG=329682 R=enne Review URL: https://codereview.chromium.org/98113005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241994 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_picture_layer_tiling_client.h')
-rw-r--r--cc/test/fake_picture_layer_tiling_client.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/cc/test/fake_picture_layer_tiling_client.h b/cc/test/fake_picture_layer_tiling_client.h
index bd4f443..4b092e8 100644
--- a/cc/test/fake_picture_layer_tiling_client.h
+++ b/cc/test/fake_picture_layer_tiling_client.h
@@ -16,16 +16,13 @@ namespace cc {
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 @@ class FakePictureLayerTilingClient : public PictureLayerTilingClient {
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