diff options
author | 2013-07-15 14:21:17 +0000 | |
---|---|---|
committer | 2013-07-15 14:21:17 +0000 | |
commit | 791d0de747e1d5631f171744d74dab808c90511e (patch) | |
tree | ba14f075d3c9c1af505ea569a51e0b6db62fe9ce | |
parent | 2d3b49201302f3f82e405a750724eae8ef82e5a0 (diff) |
fix linux point compare
fix linux pt compare
BUG=
Review URL: https://codereview.chromium.org/19203002
git-svn-id: http://skia.googlecode.com/svn/trunk@10076 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | src/pathops/SkPathOpsPoint.h | 2 | ||||
-rw-r--r-- | tests/PathOpsSimplifyTest.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/pathops/SkPathOpsPoint.h b/src/pathops/SkPathOpsPoint.h index ad959b6669..045b1b4d46 100644 --- a/src/pathops/SkPathOpsPoint.h +++ b/src/pathops/SkPathOpsPoint.h @@ -102,7 +102,7 @@ struct SkDPoint { bool approximatelyEqual(const SkDPoint& a) const { double denom = SkTMax(fabs(fX), SkTMax(fabs(fY), SkTMax(fabs(a.fX), fabs(a.fY)))); - if (denom == 0) { + if (precisely_zero(denom)) { return true; } double inv = 1 / denom; diff --git a/tests/PathOpsSimplifyTest.cpp b/tests/PathOpsSimplifyTest.cpp index 85f6685c3f..5f61812b1f 100644 --- a/tests/PathOpsSimplifyTest.cpp +++ b/tests/PathOpsSimplifyTest.cpp @@ -3828,7 +3828,7 @@ static void skphealth_com76(skiatest::Reporter* reporter) { testSimplify(reporter, path); } -static void (*firstTest)(skiatest::Reporter* ) = 0; +static void (*firstTest)(skiatest::Reporter* ) = testLine24a; static TestDesc tests[] = { TEST(skphealth_com76), @@ -4194,7 +4194,7 @@ static const size_t subTestCount = SK_ARRAY_COUNT(subTests); static void (*firstSubTest)(skiatest::Reporter* ) = 0; static bool runSubTestsFirst = false; -static bool runReverse = false; +static bool runReverse = true; static void (*stopTest)(skiatest::Reporter* ) = 0; static void PathOpsSimplifyTest(skiatest::Reporter* reporter) { |