blob: 7cd01587d4b29a7b57c93a3ebdf287f936936008 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "config.h"
#include "CCAnimationCurve.h"
namespace cc {
const CCFloatAnimationCurve* CCAnimationCurve::toFloatAnimationCurve() const
{
ASSERT(type() == CCAnimationCurve::Float);
return static_cast<const CCFloatAnimationCurve*>(this);
}
CCAnimationCurve::Type CCFloatAnimationCurve::type() const
{
return Float;
}
const CCTransformAnimationCurve* CCAnimationCurve::toTransformAnimationCurve() const
{
ASSERT(type() == CCAnimationCurve::Transform);
return static_cast<const CCTransformAnimationCurve*>(this);
}
CCAnimationCurve::Type CCTransformAnimationCurve::type() const
{
return Transform;
}
} // namespace cc
|