Index: src/utils/SkCurveMeasure.h |
diff --git a/src/utils/SkCurveMeasure.h b/src/utils/SkCurveMeasure.h |
index 2846103633145729861e63d7b282fcc5ee67defe..58a408462166eb283f5412a962e666319737e800 100644 |
--- a/src/utils/SkCurveMeasure.h |
+++ b/src/utils/SkCurveMeasure.h |
@@ -44,6 +44,15 @@ private: |
class SkCurveMeasure { |
public: |
SkCurveMeasure() {} |
+ |
+ // Almost exactly the same as in SkPath::Iter: |
+ // kLine_SegType -> 2 points: start end |
+ // kQuad_SegType -> 3 points: start control end |
+ // kCubic_SegType -> 3 points: start control1 control2 end |
reed1
2016/08/10 12:08:07
cubic -> 4 ?
Harry Stern
2016/08/10 17:55:58
Done.
|
+ // kConic_SegType -> 4 points: start control end (w, w) |
+ // |
+ // i.e. the only difference is that the conic's last point is a point |
+ // consisting of the w value twice |
SkCurveMeasure(const SkPoint* pts, SkSegType segType); |
SkScalar getTime(SkScalar targetLength); |
@@ -51,13 +60,6 @@ public: |
SkScalar getLength(); |
private: |
- SkPoint evaluateQuad(SkScalar t); |
- SkVector evaluateQuadDerivative(SkScalar t); |
- //SkPoint evaluate_cubic(SkScalar t); |
- //SkVector evaluate_cubic_derivative(SkScalar t); |
- //SkPoint evaluate_conic(SkScalar t); |
- //SkVector evaluate_conic_derivative(SkScalar t); |
- |
const SkScalar kTolerance = 0.0001f; |
const int kNewtonIters = 5; |
const int kBisectIters = 5; |