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

Unified Diff: cc/CCAnimationCurve.cpp

Issue 11048044: cc: Switch to Chromium DCHECKs and LOGs (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | cc/CCCheckerboardDrawQuad.cpp » ('j') | cc/CCCompletionEvent.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCAnimationCurve.cpp
diff --git a/cc/CCAnimationCurve.cpp b/cc/CCAnimationCurve.cpp
index 7cd01587d4b29a7b57c93a3ebdf287f936936008..c2c3dc001cfd50f633f58ab71f6522c62bf22bdc 100644
--- a/cc/CCAnimationCurve.cpp
+++ b/cc/CCAnimationCurve.cpp
@@ -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);
}
« no previous file with comments | « no previous file | cc/CCCheckerboardDrawQuad.cpp » ('j') | cc/CCCompletionEvent.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698