| Index: cc/test/animation_test_common.cc
|
| diff --git a/cc/test/animation_test_common.cc b/cc/test/animation_test_common.cc
|
| index 678f8de5fb4cfffa83228707b63cb3603ddd2ac5..b6ba614d199ffdc4df1c9f805aa8c70c52a717c1 100644
|
| --- a/cc/test/animation_test_common.cc
|
| +++ b/cc/test/animation_test_common.cc
|
| @@ -150,6 +150,40 @@ float FakeFloatTransition::getValue(double time) const
|
| return (1 - time) * m_from + time * m_to;
|
| }
|
|
|
| +FakeLayerAnimationControllerClient::FakeLayerAnimationControllerClient()
|
| + : m_opacity(0)
|
| +{
|
| +}
|
| +
|
| +FakeLayerAnimationControllerClient::~FakeLayerAnimationControllerClient()
|
| +{
|
| +}
|
| +
|
| +int FakeLayerAnimationControllerClient::id() const
|
| +{
|
| + return 0;
|
| +}
|
| +
|
| +void FakeLayerAnimationControllerClient::setOpacityFromAnimation(float opacity)
|
| +{
|
| + m_opacity = opacity;
|
| +}
|
| +
|
| +float FakeLayerAnimationControllerClient::opacity() const
|
| +{
|
| + return m_opacity;
|
| +}
|
| +
|
| +void FakeLayerAnimationControllerClient::setTransformFromAnimation(const gfx::Transform& transform)
|
| +{
|
| + m_transform = transform;
|
| +}
|
| +
|
| +const gfx::Transform& FakeLayerAnimationControllerClient::transform() const
|
| +{
|
| + return m_transform;
|
| +}
|
| +
|
| scoped_ptr<cc::AnimationCurve> FakeFloatTransition::clone() const
|
| {
|
| return make_scoped_ptr(new FakeFloatTransition(*this)).PassAs<cc::AnimationCurve>();
|
|
|