Index: src/pathops/SkPathOpsTypes.h |
diff --git a/src/pathops/SkPathOpsTypes.h b/src/pathops/SkPathOpsTypes.h |
index bc39675d622f0c2c534c69a8e0db77cf6326e876..0ad10c2eba5cb6fe9af1c83e3ab9dcbab8f9b876 100644 |
--- a/src/pathops/SkPathOpsTypes.h |
+++ b/src/pathops/SkPathOpsTypes.h |
@@ -28,11 +28,22 @@ inline bool AlmostEqualUlps(double a, double b) { |
return AlmostEqualUlps(SkDoubleToScalar(a), SkDoubleToScalar(b)); |
} |
+// Use Almost Dequal when comparing should not special case denormalized values. |
+bool AlmostDequalUlps(float a, float b); |
+inline bool AlmostDequalUlps(double a, double b) { |
+ return AlmostDequalUlps(SkDoubleToScalar(a), SkDoubleToScalar(b)); |
+} |
+ |
bool NotAlmostEqualUlps(float a, float b); |
inline bool NotAlmostEqualUlps(double a, double b) { |
return NotAlmostEqualUlps(SkDoubleToScalar(a), SkDoubleToScalar(b)); |
} |
+bool NotAlmostDequalUlps(float a, float b); |
+inline bool NotAlmostDequalUlps(double a, double b) { |
+ return NotAlmostDequalUlps(SkDoubleToScalar(a), SkDoubleToScalar(b)); |
+} |
+ |
// Use Almost Bequal when comparing coordinates in conjunction with between. |
bool AlmostBequalUlps(float a, float b); |
inline bool AlmostBequalUlps(double a, double b) { |