diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-12-19 14:22:03 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-12-19 14:22:03 +0000 |
commit | 1915fd09f3b60eb907f5ab155e8379b589e2bae1 (patch) | |
tree | 24dbb06f840516cafff4d7c7d0266bd46d959ab1 /experimental/Intersection | |
parent | 4fa237f2fb66e7f3be003add06e719e1ca1fe643 (diff) |
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
Diffstat (limited to 'experimental/Intersection')
-rw-r--r-- | experimental/Intersection/SkAntiEdge.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/experimental/Intersection/SkAntiEdge.cpp b/experimental/Intersection/SkAntiEdge.cpp index 0aa159c53e..2cce960e52 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); |