aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar caryclark <caryclark@google.com>2015-05-20 08:22:45 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-05-20 08:22:45 -0700
commitd223eb36a0be2bb5a278a483d6289a16b28eaf1a (patch)
tree10101527d849895fb03d1676d1ba5f5735ac04c4
parentc13a7738fbd6244f5caaca8f5351f769f8cc8fc1 (diff)
fix win 8 bot
Comment out assert (runtime documentation) It fails on Win 8 because the result isn't bit identical. TBR=bungeman@google.com Review URL: https://codereview.chromium.org/1148053003
-rw-r--r--src/core/SkStroke.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/SkStroke.cpp b/src/core/SkStroke.cpp
index b4af918593..eda26d024f 100644
--- a/src/core/SkStroke.cpp
+++ b/src/core/SkStroke.cpp
@@ -1056,7 +1056,9 @@ SkPathStroker::ResultType SkPathStroker::intersectRay(SkQuadConstruct* quadPts,
}
// check to see if the denomerator is teeny relative to the numerator
bool validDivide = SkScalarAbs(numerA) * SK_ScalarNearlyZero < SkScalarAbs(denom);
- SkASSERT(!SkScalarNearlyZero(denom / numerA) == validDivide);
+// the divide check is the same as checking if the scaled denom is nearly zero
+// (commented out because on some platforms the two are not bit-identical)
+// SkASSERT(!SkScalarNearlyZero(denom / numerA) == validDivide);
if (validDivide) {
if (kCtrlPt_RayType == intersectRayType) {
numerA /= denom;