17#if !defined(SK_ENABLE_OPTIMIZE_SIZE)
30 fuzz->nextRange(&
count, 0, 512);
32 for (
int index = 0; index <
count; ++index) {
33 fuzz->next(&polygon[index].fX, &polygon[index].fY);
54 fuzz->nextRange(&
offset, -1000, 1000);
58 for (
int index = 0; index <
count; ++index) {
59 fuzz->next(&indexMap[index]);
static SkPoint sanitize_point(const SkPoint &in)
DEF_FUZZ(PolyUtils, fuzz)
bool SkIsConvexPolygon(const SkPoint *polygonVerts, int polygonSize)
bool SkTriangulateSimplePolygon(const SkPoint *polygonVerts, uint16_t *indexMap, int polygonSize, SkTDArray< uint16_t > *triangleIndices)
bool SkOffsetSimplePolygon(const SkPoint *inputPolygonVerts, int inputPolygonSize, const SkRect &bounds, SkScalar offset, SkTDArray< SkPoint > *offsetPolygon, SkTDArray< int > *polygonIndices)
bool SkIsSimplePolygon(const SkPoint *polygon, int polygonSize)
int SkGetPolygonWinding(const SkPoint *polygonVerts, int polygonSize)
bool SkInsetConvexPolygon(const SkPoint *inputPolygonVerts, int inputPolygonSize, SkScalar inset, SkTDArray< SkPoint > *insetPolygon)
#define SkScalarRoundToScalar(x)
Optional< SkRect > bounds
static SkRect inset(const SkRect &r)