Index: src/pathops/SkPathOpsCubic.h |
diff --git a/src/pathops/SkPathOpsCubic.h b/src/pathops/SkPathOpsCubic.h |
index 9932e1d1bc300917783e4aa9416dad6f938dbf54..2e72cf501d642c45817ce662294e6917281b2737 100644 |
--- a/src/pathops/SkPathOpsCubic.h |
+++ b/src/pathops/SkPathOpsCubic.h |
@@ -70,6 +70,9 @@ struct SkDCubic { |
int findMaxCurvature(double tValues[]) const; |
bool hullIntersects(const SkDCubic& c2, bool* isLinear) const; |
+ bool hullIntersects(const SkDConic& c, bool* isLinear) const; |
+ bool hullIntersects(const SkDQuad& c2, bool* isLinear) const; |
+ bool hullIntersects(const SkDPoint* pts, int ptCount, bool* isLinear) const; |
bool isLinear(int startIndex, int endIndex) const; |
bool monotonicInY() const; |
void otherPts(int index, const SkDPoint* o1Pts[kPointCount - 1]) const; |
@@ -80,11 +83,12 @@ struct SkDCubic { |
int searchRoots(double extremes[6], int extrema, double axisIntercept, |
SearchAxis xAxis, double* validRoots) const; |
- void set(const SkPoint pts[kPointCount]) { |
+ const SkDCubic& set(const SkPoint pts[kPointCount]) { |
fPts[0] = pts[0]; |
fPts[1] = pts[1]; |
fPts[2] = pts[2]; |
fPts[3] = pts[3]; |
+ return *this; |
} |
SkDCubic subDivide(double t1, double t2) const; |