aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkPath.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-08-23 14:39:01 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-08-23 14:39:01 +0000
commit647a804c3dd53b6743091ec97dd12111f90efec3 (patch)
tree9f1afde2e721e34695d33271e8e13e00789c6e08 /src/core/SkPath.cpp
parent8214587a79c0a4398664289c4d1ce2c0bf542b42 (diff)
Core skia changes to prepare for Gr AA Hairline renderer
Review URL: http://codereview.appspot.com/4940045/ git-svn-id: http://skia.googlecode.com/svn/trunk@2160 2bbb7eff-a529-9590-31e7-b0007b416f81
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