Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Unified Diff: cc/animation_curve.cc

Issue 11048044: cc: Switch to Chromium DCHECKs and LOGs (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: with-presubmit Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/animation_curve.cc
diff --git a/cc/animation_curve.cc b/cc/animation_curve.cc
index 7cd01587d4b29a7b57c93a3ebdf287f936936008..836a8026ece6b4605741783e4ebbe743cf567a39 100644
--- a/cc/animation_curve.cc
+++ b/cc/animation_curve.cc
@@ -6,11 +6,13 @@
#include "CCAnimationCurve.h"
+#include "cc/dcheck.h"
+
namespace cc {
const CCFloatAnimationCurve* CCAnimationCurve::toFloatAnimationCurve() const
{
- ASSERT(type() == CCAnimationCurve::Float);
+ CC_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);
+ CC_DCHECK(type() == CCAnimationCurve::Transform);
return static_cast<const CCTransformAnimationCurve*>(this);
}

Powered by Google App Engine
This is Rietveld 408576698