summaryrefslogtreecommitdiffstats
path: root/cc/test/animation_test_common.cc
diff options
context:
space:
mode:
authorvollick@chromium.org <vollick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-07 15:50:15 +0000
committervollick@chromium.org <vollick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-07 15:50:15 +0000
commit5867677c366103e8f8083c9c7a5421a24aefb946 (patch)
tree0f73cacb1d9ebdef27f321bfce86fa7cf8977cd6 /cc/test/animation_test_common.cc
parentf0141dccf91495b5ea7b467bd5d53c6f2d4efcb1 (diff)
downloadchromium_src-5867677c366103e8f8083c9c7a5421a24aefb946.zip
chromium_src-5867677c366103e8f8083c9c7a5421a24aefb946.tar.gz
chromium_src-5867677c366103e8f8083c9c7a5421a24aefb946.tar.bz2
We don't want to tick animation controllers for non-active layers
With this change, we will only tick animation controllers once one of their corresponding layers is active. R=enne@chromium.org NOTRY=true BUG=None Review URL: https://chromiumcodereview.appspot.com/11633044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175338 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/animation_test_common.cc')
-rw-r--r--cc/test/animation_test_common.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/cc/test/animation_test_common.cc b/cc/test/animation_test_common.cc
index 258a266..0e62151 100644
--- a/cc/test/animation_test_common.cc
+++ b/cc/test/animation_test_common.cc
@@ -165,6 +165,11 @@ void FakeLayerAnimationValueObserver::OnTransformAnimated(const gfx::Transform&
m_transform = transform;
}
+bool FakeLayerAnimationValueObserver::IsActive() const
+{
+ return true;
+}
+
scoped_ptr<cc::AnimationCurve> FakeFloatTransition::clone() const
{
return make_scoped_ptr(new FakeFloatTransition(*this)).PassAs<cc::AnimationCurve>();