aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pathops/SkPathOpsTypes.h
diff options
context:
space:
mode:
authorGravatar caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-23 12:04:05 +0000
committerGravatar caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-23 12:04:05 +0000
commitc3f63570c35a1e2bc84b33906c6401d6f3062bf2 (patch)
tree37b59309f586a8573e031b03b74220049dd1c0bd /src/pathops/SkPathOpsTypes.h
parent3b97af5add04489d57c7926ba6dc6f0013daf40f (diff)
path ops : enable optimizations
this addresses a few FIXME issues - speed up implicit quad computation - use ulps instead of epsilon - assert on bad line results more often git-svn-id: http://skia.googlecode.com/svn/trunk@8823 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/pathops/SkPathOpsTypes.h')
-rw-r--r--src/pathops/SkPathOpsTypes.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pathops/SkPathOpsTypes.h b/src/pathops/SkPathOpsTypes.h
index 4d81586765..5a5394a0e7 100644
--- a/src/pathops/SkPathOpsTypes.h
+++ b/src/pathops/SkPathOpsTypes.h
@@ -21,6 +21,7 @@ enum SkPathOpsMask {
kEvenOdd_PathOpsMask = 1
};
+// Use Almost Equal when comparing coordinates. Use epsilon to compare T values.
extern bool AlmostEqualUlps(float A, float B);
inline bool AlmostEqualUlps(double A, double B) {
return AlmostEqualUlps(SkDoubleToScalar(A), SkDoubleToScalar(B));