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
This commit is contained in:
caryclark@google.com 2013-07-15 14:21:17 +00:00
parent 2d3b492013
commit 791d0de747
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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) {