| Index: include/core/SkStrokeRec.h
|
| diff --git a/include/core/SkStrokeRec.h b/include/core/SkStrokeRec.h
|
| index 22981a5d9e4412c0a00a41b82cfab91b1d247e5e..e5988c6367a9001d4743e4018379c38ab5f0f1cd 100644
|
| --- a/include/core/SkStrokeRec.h
|
| +++ b/include/core/SkStrokeRec.h
|
| @@ -99,6 +99,22 @@ public:
|
| void applyToPaint(SkPaint* paint) const;
|
|
|
| /**
|
| + * Gives a conservative value for the outset that should applied to a
|
| + * geometries bounds to account for any inflation due to applying this
|
| + * strokeRec to the geometry.
|
| + */
|
| + SkScalar getInflationRadius() const;
|
| +
|
| + /**
|
| + * Equivalent to:
|
| + * SkStrokeRec rec(paint);
|
| + * rec.getInflationBounds();
|
| + * This does not account for other effects on the paint (i.e. path
|
| + * effect).
|
| + */
|
| + static SkScalar GetInflationBounds(const SkPaint&);
|
| +
|
| + /**
|
| * Compare if two SkStrokeRecs have an equal effect on a path.
|
| * Equal SkStrokeRecs produce equal paths. Equality of produced
|
| * paths does not take the ResScale parameter into account.
|
|
|