cc: Compute animation contents scale using property trees
This computes maximum_animation_contents_scale and
starting_animation_contents_scale using property trees.
BUG=509673
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1294913002
Cr-Commit-Position: refs/heads/master@{#345140}
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index a95c414..d5f6c11 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -199,9 +199,13 @@
const gfx::Transform& transform() const { return transform_; }
bool TransformIsAnimating() const;
bool HasPotentiallyRunningTransformAnimation() const;
+ bool HasOnlyTranslationTransforms() const;
bool AnimationsPreserveAxisAlignment() const;
bool transform_is_invertible() const { return transform_is_invertible_; }
+ bool MaximumTargetScale(float* max_scale) const;
+ bool AnimationStartScale(float* start_scale) const;
+
void SetTransformOrigin(const gfx::Point3F&);
gfx::Point3F transform_origin() const { return transform_origin_; }