summaryrefslogtreecommitdiffstats
path: root/cc/test/fake_picture_layer_tiling_client.cc
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.cc
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.cc')
-rw-r--r--cc/test/fake_picture_layer_tiling_client.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/cc/test/fake_picture_layer_tiling_client.cc b/cc/test/fake_picture_layer_tiling_client.cc
index dd64ac2..7834bc0 100644
--- a/cc/test/fake_picture_layer_tiling_client.cc
+++ b/cc/test/fake_picture_layer_tiling_client.cc
@@ -44,6 +44,10 @@ scoped_refptr<Tile> FakePictureLayerTilingClient::CreateTile(
pile_.get(), tile_size_, rect, gfx::Rect(), 1, 0, 0, 0);
}
+PicturePileImpl* FakePictureLayerTilingClient::GetPile() {
+ return pile_.get();
+}
+
void FakePictureLayerTilingClient::SetTileSize(const gfx::Size& tile_size) {
tile_size_ = tile_size;
}