Index: src/pathops/SkPathOpsCurve.h |
diff --git a/src/pathops/SkPathOpsCurve.h b/src/pathops/SkPathOpsCurve.h |
index dc9cec97e46c569a6aa76b47f7d012942fbbd37a..2b50864e5b875191c2e9fa0816a0fb81fa6155a1 100644 |
--- a/src/pathops/SkPathOpsCurve.h |
+++ b/src/pathops/SkPathOpsCurve.h |
@@ -82,6 +82,19 @@ struct SkDCurve { |
double s, double e, SkPathOpsBounds*); |
}; |
+class SkDCurveSweep { |
+public: |
+ bool isCurve() const { return fIsCurve; } |
+ bool isOrdered() const { return fOrdered; } |
+ void setCurveHullSweep(SkPath::Verb verb); |
+ |
+ SkDCurve fCurve; |
+ SkDVector fSweep[2]; |
+private: |
+ bool fIsCurve; |
+ bool fOrdered; // cleared when a cubic's control point isn't between the sweep vectors |
+ |
+}; |
extern SkDPoint (SkDCurve::* const Top[])(const SkPoint curve[], SkScalar cWeight, |
double tStart, double tEnd, double* topT); |