diff options
Diffstat (limited to 'src/utils/SkOffsetPolygon.h')
-rwxr-xr-x | src/utils/SkOffsetPolygon.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/utils/SkOffsetPolygon.h b/src/utils/SkOffsetPolygon.h index a0555ab51e..b6c3a222ad 100755 --- a/src/utils/SkOffsetPolygon.h +++ b/src/utils/SkOffsetPolygon.h @@ -44,10 +44,12 @@ inline bool SkInsetConvexPolygon(const SkPoint* inputPolygonVerts, int inputPoly * @param offset How far we wish to offset the polygon. * Positive value means inset, negative value means outset. * @param offsetPolgon The resulting offset polygon, if any. + * @param polygonIndices The indices of the original polygon that map to the new one. * @return true if an offset simple polygon exists, false otherwise. */ bool SkOffsetSimplePolygon(const SkPoint* inputPolygonVerts, int inputPolygonSize, - SkScalar offset, SkTDArray<SkPoint>* offsetPolygon); + SkScalar offset, SkTDArray<SkPoint>* offsetPolygon, + SkTDArray<int>* polygonIndices = nullptr); /** * Offset a segment by the given distance at each point. |