Chromium Code Reviews| Index: cc/animation_curve.cc |
| diff --git a/cc/animation_curve.cc b/cc/animation_curve.cc |
| index 7cd01587d4b29a7b57c93a3ebdf287f936936008..c2c3dc001cfd50f633f58ab71f6522c62bf22bdc 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); |
|
jamesr
2012/10/17 18:51:51
DCHECK_EQ will print the two types if it fails
|
| 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); |
| } |