summaryrefslogtreecommitdiffstats
path: root/cc/math_util.cc
diff options
context:
space:
mode:
authormattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-17 01:25:18 +0000
committermattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-17 01:25:18 +0000
commite7f87cfba8e6f916dd88359ed9abf6ec6884d65d (patch)
tree289b3ec335cf58e6924f5a6fccd8e17ea1c6585a /cc/math_util.cc
parentbc3847a1ba39db7adec20aa9e0565f6e868e8480 (diff)
downloadchromium_src-e7f87cfba8e6f916dd88359ed9abf6ec6884d65d.zip
chromium_src-e7f87cfba8e6f916dd88359ed9abf6ec6884d65d.tar.gz
chromium_src-e7f87cfba8e6f916dd88359ed9abf6ec6884d65d.tar.bz2
Revert "cc: Switch to Chromium DCHECKs LOGs"
This reverts commit 162296. (https://chromiumcodereview.appspot.com/11048044) TBR=danakj@chromium.org Review URL: https://codereview.chromium.org/11196014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162297 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/math_util.cc')
-rw-r--r--cc/math_util.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/cc/math_util.cc b/cc/math_util.cc
index 417e0c9..d90eb09 100644
--- a/cc/math_util.cc
+++ b/cc/math_util.cc
@@ -66,9 +66,9 @@ static HomogeneousCoordinate computeClippedPointForEdge(const HomogeneousCoordin
// Once paramter t is known, the rest of p can be computed via p = (1-t) h1 + (t) h2.
// Technically this is a special case of the following assertion, but its a good idea to keep it an explicit sanity check here.
- DCHECK(h2.w != h1.w);
+ ASSERT(h2.w != h1.w);
// Exactly one of h1 or h2 (but not both) must be on the negative side of the w plane when this is called.
- DCHECK(h1.shouldBeClipped() ^ h2.shouldBeClipped());
+ ASSERT(h1.shouldBeClipped() ^ h2.shouldBeClipped());
double w = 0.00001; // or any positive non-zero small epsilon
@@ -165,7 +165,7 @@ void CCMathUtil::mapClippedQuad(const WebTransformationMatrix& transform, const
if (h4.shouldBeClipped() ^ h1.shouldBeClipped())
addVertexToClippedQuad(computeClippedPointForEdge(h4, h1).cartesianPoint2d(), clippedQuad, numVerticesInClippedQuad);
- DCHECK(numVerticesInClippedQuad <= 8);
+ ASSERT(numVerticesInClippedQuad <= 8);
}
FloatRect CCMathUtil::computeEnclosingRectOfVertices(FloatPoint vertices[], int numVertices)