summaryrefslogtreecommitdiffstats
path: root/cc/test/fake_picture_layer_tiling_client.h
diff options
context:
space:
mode:
authorwangxianzhu@chromium.org <wangxianzhu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-26 09:24:43 +0000
committerwangxianzhu@chromium.org <wangxianzhu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-26 09:24:43 +0000
commitdd65f91f9abdea4c58648911a149215e67d6a0f4 (patch)
tree8d337e3a0e41631c666870299bb229483a055aa1 /cc/test/fake_picture_layer_tiling_client.h
parent465acd519d086204d3c3df2c10bab72ce034940f (diff)
downloadchromium_src-dd65f91f9abdea4c58648911a149215e67d6a0f4.zip
chromium_src-dd65f91f9abdea4c58648911a149215e67d6a0f4.tar.gz
chromium_src-dd65f91f9abdea4c58648911a149215e67d6a0f4.tar.bz2
Let AreVisibleResourcesReady return correct value for PictureImageLayerImpl
AreVisibleResourcesReady didn't return correct value because PictureLayerImpl::raster_source_scale_ didn't reflect the actual value for PictureImageLayerImpl. In this CL raster_contents_scale_ and low_res_raster_contents_scale_ are stored in PictureLayerImpl. BTW extracted the code to determine if raster scale needs to be adjusted into ShouldAdjustRasterScale(). BUG=223201 TEST=PictureImageLayerImplTest.* Review URL: https://chromiumcodereview.appspot.com/12954006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190621 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cc/test/fake_picture_layer_tiling_client.h b/cc/test/fake_picture_layer_tiling_client.h
index 0dd9717..4cde8cd 100644
--- a/cc/test/fake_picture_layer_tiling_client.h
+++ b/cc/test/fake_picture_layer_tiling_client.h
@@ -30,6 +30,7 @@ class FakePictureLayerTilingClient : public PictureLayerTilingClient {
void SetTileSize(gfx::Size tile_size);
gfx::Size TileSize() const { return tile_size_; }
+ scoped_refptr<PicturePileImpl> pile() { return pile_; }
protected:
FakeTileManagerClient tile_manager_client_;