summaryrefslogtreecommitdiffstats
path: root/cc/math_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'cc/math_util.h')
-rw-r--r--cc/math_util.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/cc/math_util.h b/cc/math_util.h
index ed3848e..f0a36ab 100644
--- a/cc/math_util.h
+++ b/cc/math_util.h
@@ -5,6 +5,7 @@
#ifndef CCMathUtil_h
#define CCMathUtil_h
+#include "base/logging.h"
#include "FloatPoint.h"
#include "FloatPoint3D.h"
@@ -38,7 +39,7 @@ struct HomogeneousCoordinate {
return FloatPoint(x, y);
// For now, because this code is used privately only by CCMathUtil, it should never be called when w == 0, and we do not yet need to handle that case.
- ASSERT(w);
+ DCHECK(w);
double invW = 1.0 / w;
return FloatPoint(x * invW, y * invW);
}
@@ -49,7 +50,7 @@ struct HomogeneousCoordinate {
return FloatPoint3D(x, y, z);
// For now, because this code is used privately only by CCMathUtil, it should never be called when w == 0, and we do not yet need to handle that case.
- ASSERT(w);
+ DCHECK(w);
double invW = 1.0 / w;
return FloatPoint3D(x * invW, y * invW, z * invW);
}