diff options
Diffstat (limited to 'cc/animation_curve.cc')
-rw-r--r-- | cc/animation_curve.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cc/animation_curve.cc b/cc/animation_curve.cc index 7cd0158..c2c3dc0 100644 --- a/cc/animation_curve.cc +++ b/cc/animation_curve.cc @@ -6,11 +6,13 @@ #include "CCAnimationCurve.h" +#include "base/logging.h" + namespace cc { const CCFloatAnimationCurve* CCAnimationCurve::toFloatAnimationCurve() const { - ASSERT(type() == CCAnimationCurve::Float); + DCHECK(type() == CCAnimationCurve::Float); return static_cast<const CCFloatAnimationCurve*>(this); } @@ -21,7 +23,7 @@ CCAnimationCurve::Type CCFloatAnimationCurve::type() const const CCTransformAnimationCurve* CCAnimationCurve::toTransformAnimationCurve() const { - ASSERT(type() == CCAnimationCurve::Transform); + DCHECK(type() == CCAnimationCurve::Transform); return static_cast<const CCTransformAnimationCurve*>(this); } |