Index: cc/test/fake_picture_layer_impl.h |
diff --git a/cc/test/fake_picture_layer_impl.h b/cc/test/fake_picture_layer_impl.h |
index ae8f202ca092c1641c0e8512492f7bf9f7a1c79d..38caff85cdfd7193127e3effd1e539db09bd78a3 100644 |
--- a/cc/test/fake_picture_layer_impl.h |
+++ b/cc/test/fake_picture_layer_impl.h |
@@ -48,6 +48,10 @@ class FakePictureLayerImpl : public PictureLayerImpl { |
using PictureLayerImpl::MinimumContentsScale; |
using PictureLayerImpl::SanityCheckTilingState; |
+ using PictureLayerImpl::UpdateIdealScales; |
+ using PictureLayerImpl::MaximumTilingContentsScale; |
+ using PictureLayerImpl::ManageTilings; |
+ |
void SetNeedsPostCommitInitialization() { |
needs_post_commit_initialization_ = true; |
} |
@@ -90,6 +94,15 @@ class FakePictureLayerImpl : public PictureLayerImpl { |
void SetAllTilesReadyInTiling(PictureLayerTiling* tiling); |
void ResetAllTilesPriorities(); |
+ void ScaleAndManageTilings(bool animating_transform_to_screen, |
+ float maximum_animation_contents_scale) { |
+ UpdateIdealScales(); |
+ if (CanHaveTilings()) { |
+ ManageTilings(animating_transform_to_screen, |
+ maximum_animation_contents_scale); |
+ } |
+ } |
+ |
protected: |
FakePictureLayerImpl( |
LayerTreeImpl* tree_impl, |