| Index: include/core/SkGeometry.h
|
| diff --git a/include/core/SkGeometry.h b/include/core/SkGeometry.h
|
| index 6218ed1843aec6b7843f9f3bbf27c123b9f2c78c..2c37fff3e4a0f2a8f3a21a5a1ff128ce37cce7a8 100644
|
| --- a/include/core/SkGeometry.h
|
| +++ b/include/core/SkGeometry.h
|
| @@ -230,7 +230,16 @@ struct SkConic {
|
| void computeAsQuadError(SkVector* err) const;
|
| bool asQuadTol(SkScalar tol) const;
|
|
|
| + /**
|
| + * return the power-of-2 number of quads needed to approximate this conic
|
| + * with a sequence of quads. Will be >= 0.
|
| + */
|
| int computeQuadPOW2(SkScalar tol) const;
|
| +
|
| + /**
|
| + * Chop this conic into N quads, stored continguously in pts[], where
|
| + * N = 1 << pow2. The amount of storage needed is (1 + 2 * N)
|
| + */
|
| int chopIntoQuadsPOW2(SkPoint pts[], int pow2) const;
|
|
|
| bool findXExtrema(SkScalar* t) const;
|
|
|