commit | 1915fd09f3b60eb907f5ab155e8379b589e2bae1 | [log] [tgz] |
---|---|---|
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Dec 19 14:22:03 2013 +0000 |
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Dec 19 14:22:03 2013 +0000 |
tree | 24dbb06f840516cafff4d7c7d0266bd46d959ab1 | |
parent | 4fa237f2fb66e7f3be003add06e719e1ca1fe643 [diff] [blame] |
remove unused SkFixed and SkFract functions BUG= R=caryclark@google.com Review URL: https://codereview.chromium.org/113873008 git-svn-id: http://skia.googlecode.com/svn/trunk@12767 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/experimental/Intersection/SkAntiEdge.cpp b/experimental/Intersection/SkAntiEdge.cpp index 0aa159c..2cce960 100644 --- a/experimental/Intersection/SkAntiEdge.cpp +++ b/experimental/Intersection/SkAntiEdge.cpp
@@ -7,6 +7,14 @@ #include "SkAntiEdge.h" #include "SkPoint.h" +/** Returns the signed fraction of a SkFixed + */ +static inline SkFixed SkFixedFraction(SkFixed x) +{ + SkFixed mask = x >> 31 << 16; + return (x & 0xFFFF) | mask; +} + void SkAntiEdge::pointOnLine(SkFixed x, SkFixed y) { float x0 = SkFixedToFloat(x); float y0 = SkFixedToFloat(y);