diff options
author | ajuma@chromium.org <ajuma@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-03 23:56:02 +0000 |
---|---|---|
committer | ajuma@chromium.org <ajuma@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-03 23:56:02 +0000 |
commit | 6248bcc8d0717d4af4836299f54f51d0939042a8 (patch) | |
tree | f15c96ee198d1a424a46847227fd2a1ae7e0ca78 /cc/test/animation_test_common.cc | |
parent | 22646b0458de4b49e9f84d051d5fb24316ad0271 (diff) | |
download | chromium_src-6248bcc8d0717d4af4836299f54f51d0939042a8.zip chromium_src-6248bcc8d0717d4af4836299f54f51d0939042a8.tar.gz chromium_src-6248bcc8d0717d4af4836299f54f51d0939042a8.tar.bz2 |
cc: Compute the maximum scale of animations
This adds MaximumScale and HasOnlyTranslationTransforms
methods to LayerAnimationController.
BUG=224913
Review URL: https://codereview.chromium.org/214003004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261583 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/animation_test_common.cc')
-rw-r--r-- | cc/test/animation_test_common.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cc/test/animation_test_common.cc b/cc/test/animation_test_common.cc index 3dcaf23..b5af1d2 100644 --- a/cc/test/animation_test_common.cc +++ b/cc/test/animation_test_common.cc @@ -170,6 +170,13 @@ bool FakeTransformTransition::AnimatedBoundsForBox(const gfx::BoxF& box, bool FakeTransformTransition::AffectsScale() const { return false; } +bool FakeTransformTransition::IsTranslation() const { return true; } + +bool FakeTransformTransition::MaximumScale(float* max_scale) const { + *max_scale = 1.f; + return true; +} + scoped_ptr<AnimationCurve> FakeTransformTransition::Clone() const { return make_scoped_ptr(new FakeTransformTransition(*this)) .PassAs<AnimationCurve>(); |