aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pathops/SkOpSpan.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pathops/SkOpSpan.h')
-rw-r--r--src/pathops/SkOpSpan.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pathops/SkOpSpan.h b/src/pathops/SkOpSpan.h
index 3666623fbe..50c76d2640 100644
--- a/src/pathops/SkOpSpan.h
+++ b/src/pathops/SkOpSpan.h
@@ -12,6 +12,10 @@
class SkOpSegment;
struct SkOpSpan {
+ enum PointMatch {
+ kPointIsExact,
+ kPointIsNear
+ };
SkOpSegment* fOther;
SkPoint fPt; // computed when the curves are intersected
double fT;
@@ -24,8 +28,14 @@ struct SkOpSpan {
bool fDone; // if set, this span to next higher T has been processed
bool fUnsortableStart; // set when start is part of an unsortable pair
bool fUnsortableEnd; // set when end is part of an unsortable pair
+ bool fSmall; // if set, consecutive points are almost equal
bool fTiny; // if set, span may still be considered once for edge following
bool fLoop; // set when a cubic loops back to this point
+ bool fNear; // set if point is near segment end point
+
+#ifdef SK_DEBUG
+ void dump() const;
+#endif
};
#endif