summaryrefslogtreecommitdiffstats
path: root/cc/animation/animation_curve.h
diff options
context:
space:
mode:
authorajuma@chromium.org <ajuma@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-31 16:32:46 +0000
committerajuma@chromium.org <ajuma@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-31 16:32:46 +0000
commitadf425df60d1feef4d62a10d42ce84e3e791b116 (patch)
tree2e7c2f9d7bbe901854917062f7afbad6f7b056db /cc/animation/animation_curve.h
parent988ed713b014dc55b3e82fa659a2136e360283ac (diff)
downloadchromium_src-adf425df60d1feef4d62a10d42ce84e3e791b116.zip
chromium_src-adf425df60d1feef4d62a10d42ce84e3e791b116.tar.gz
chromium_src-adf425df60d1feef4d62a10d42ce84e3e791b116.tar.bz2
cc: Identify animations that affect scale
This adds a HasAnimationThatAffectsScale method to LayerAnimationController. BUG=224913 Review URL: https://codereview.chromium.org/213493004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260559 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/animation/animation_curve.h')
-rw-r--r--cc/animation/animation_curve.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cc/animation/animation_curve.h b/cc/animation/animation_curve.h
index 0ae2640..4c15225 100644
--- a/cc/animation/animation_curve.h
+++ b/cc/animation/animation_curve.h
@@ -75,6 +75,9 @@ class CC_EXPORT TransformAnimationCurve : public AnimationCurve {
virtual bool AnimatedBoundsForBox(const gfx::BoxF& box,
gfx::BoxF* bounds) const = 0;
+ // Returns true if this animation affects scale.
+ virtual bool AffectsScale() const = 0;
+
// Partial Animation implementation.
virtual CurveType Type() const OVERRIDE;
};