static void make_poly(SkPath* path) { make_unit_star(path, 9); const SkMatrix matrix = SkMatrix::MakeScale(SkIntToScalar(100), SkIntToScalar(100)); path->transform(matrix); }
static void make_path_star(SkPath* path, const SkRect& bounds) { make_unit_star(path, 5); SkMatrix matrix; matrix.setRectToRect(path->getBounds(), bounds, SkMatrix::kCenter_ScaleToFit); path->transform(matrix); }