summaryrefslogtreecommitdiffstats
path: root/cc/test/fake_picture_layer_tiling_client.h
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-26 21:00:35 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-26 21:00:35 +0000
commit6d885c6e9c2a053b0b6d9317b58e12c404a4536d (patch)
treeb1879e8cbc05c420a55723f43356e4dbd28b364d /cc/test/fake_picture_layer_tiling_client.h
parent6a1fac40777f4c4820209c2727974f8e08193ff9 (diff)
downloadchromium_src-6d885c6e9c2a053b0b6d9317b58e12c404a4536d.zip
chromium_src-6d885c6e9c2a053b0b6d9317b58e12c404a4536d.tar.gz
chromium_src-6d885c6e9c2a053b0b6d9317b58e12c404a4536d.tar.bz2
cc: Change PictureLayerTiling::UpdatePile to GetPile().
This helps make the code more clear, and greatly reduce the number of virtual function calls by doing them outside of loops. R=enne BUG=387116 Review URL: https://codereview.chromium.org/352933002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@280100 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.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/cc/test/fake_picture_layer_tiling_client.h b/cc/test/fake_picture_layer_tiling_client.h
index 7440ea7..6bdede0 100644
--- a/cc/test/fake_picture_layer_tiling_client.h
+++ b/cc/test/fake_picture_layer_tiling_client.h
@@ -23,7 +23,7 @@ class FakePictureLayerTilingClient : public PictureLayerTilingClient {
// PictureLayerTilingClient implementation.
virtual scoped_refptr<Tile> CreateTile(
PictureLayerTiling* tiling, const gfx::Rect& rect) OVERRIDE;
- virtual void UpdatePile(Tile* tile) OVERRIDE {}
+ virtual PicturePileImpl* GetPile() OVERRIDE;
virtual gfx::Size CalculateTileSize(
const gfx::Size& content_bounds) const OVERRIDE;
virtual size_t GetMaxTilesForInterestArea() const OVERRIDE;
@@ -32,8 +32,6 @@ class FakePictureLayerTilingClient : public PictureLayerTilingClient {
void SetTileSize(const gfx::Size& tile_size);
gfx::Size TileSize() const { return tile_size_; }
- scoped_refptr<PicturePileImpl> pile() { return pile_; }
- const PicturePileImpl* pile() const { return pile_.get(); }
virtual const Region* GetInvalidation() OVERRIDE;
virtual const PictureLayerTiling* GetTwinTiling(