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

Unified Diff: cc/math_util.h

Issue 11192030: cc: Switch to Chromium DCHECKs LOGs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebaseonenne 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 | « cc/layer_tree_host_unittest.cc ('k') | cc/math_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/math_util.h
diff --git a/cc/math_util.h b/cc/math_util.h
index ed3848e6f4b7fbdfe8b6b5264d59340b45438231..f0a36abb09861f6db569410d5fc35c1ddc9038d7 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);
}
« no previous file with comments | « cc/layer_tree_host_unittest.cc ('k') | cc/math_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698