13#if !defined(SK_ENABLE_OPTIMIZE_SIZE)
59 if (offsetPoly.
size() == 4) {
72 if (offsetPoly.
size() == 2) {
110 bounds.setBoundsCheck(clippedRRectPoly.
begin(), clippedRRectPoly.
size());
113 clippedRRectPoly.
size()));
116 32.3699417f, &offsetPoly);
DEF_TEST(OffsetSimplePoly, reporter)
bool equals(SkDrawable *a, SkDrawable *b)
bool SkIsConvexPolygon(const SkPoint *polygonVerts, int polygonSize)
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)
#define REPORTER_ASSERT(r, cond,...)
Optional< SkRect > bounds
static constexpr SkPoint Make(float x, float y)