aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkPath.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkPath.cpp')
-rw-r--r--src/core/SkPath.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp
index e0d5b69cb8..e3eda6b7f4 100644
--- a/src/core/SkPath.cpp
+++ b/src/core/SkPath.cpp
@@ -1419,21 +1419,11 @@ void SkPath::validate() const {
///////////////////////////////////////////////////////////////////////////////
-/**
- * Returns -1 || 0 || 1 depending on the sign of value:
- * -1 if value < 0
- * 0 if vlaue == 0
- * 1 if value > 0
- */
-static int SkScalarSign(SkScalar value) {
- return value < 0 ? -1 : (value > 0);
-}
-
static int sign(SkScalar x) { return x < 0; }
#define kValueNeverReturnedBySign 2
static int CrossProductSign(const SkVector& a, const SkVector& b) {
- return SkScalarSign(SkPoint::CrossProduct(a, b));
+ return SkScalarSignAsInt(SkPoint::CrossProduct(a, b));
}
// only valid for a single contour