Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1558)

Unified Diff: cc/test/fake_picture_layer_impl.h

Issue 271533011: cc: Move tiling management out of draw properties calculation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase to TOT Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resources/picture_layer_tiling_set.cc ('k') | cc/test/fake_picture_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « cc/resources/picture_layer_tiling_set.cc ('k') | cc/test/fake_picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698