aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkPath.h
diff options
context:
space:
mode:
authorGravatar epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-04-11 17:51:01 +0000
committerGravatar epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-04-11 17:51:01 +0000
commit94fa43c6255906660c2ff001fb462b6492cbdc07 (patch)
tree8a4a97ee3a4de91be4abb35d716481dc456884fe /include/core/SkPath.h
parent1647a1955fa44654102ae36df7af683bb8874175 (diff)
Fix SkPathStroker::lineTo() for line with length SK_ScalarNearlyZero
Review URL: https://codereview.appspot.com/5992077 git-svn-id: http://skia.googlecode.com/svn/trunk@3650 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkPath.h')
-rw-r--r--include/core/SkPath.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/core/SkPath.h b/include/core/SkPath.h
index 957d50ee5e..01b5488e6d 100644
--- a/include/core/SkPath.h
+++ b/include/core/SkPath.h
@@ -185,7 +185,7 @@ public:
@return true if the line is of zero length; otherwise false.
*/
static bool IsLineDegenerate(const SkPoint& p1, const SkPoint& p2) {
- return p1.equalsWithinTolerance(p2, SK_ScalarNearlyZero);
+ return p1.equalsWithinTolerance(p2);
}
/** Test a quad for zero length
@@ -194,8 +194,8 @@ public:
*/
static bool IsQuadDegenerate(const SkPoint& p1, const SkPoint& p2,
const SkPoint& p3) {
- return p1.equalsWithinTolerance(p2, SK_ScalarNearlyZero) &&
- p2.equalsWithinTolerance(p3, SK_ScalarNearlyZero);
+ return p1.equalsWithinTolerance(p2) &&
+ p2.equalsWithinTolerance(p3);
}
/** Test a cubic curve for zero length
@@ -204,9 +204,9 @@ public:
*/
static bool IsCubicDegenerate(const SkPoint& p1, const SkPoint& p2,
const SkPoint& p3, const SkPoint& p4) {
- return p1.equalsWithinTolerance(p2, SK_ScalarNearlyZero) &&
- p2.equalsWithinTolerance(p3, SK_ScalarNearlyZero) &&
- p3.equalsWithinTolerance(p4, SK_ScalarNearlyZero);
+ return p1.equalsWithinTolerance(p2) &&
+ p2.equalsWithinTolerance(p3) &&
+ p3.equalsWithinTolerance(p4);
}
/** Returns true if the path specifies a rectangle. If so, and if rect is