26 *errorMsg =
"No image. Did you forget to set the resourcePath?";
35 for (
int j = 0; j < 4; ++j) {
36 for (
int i = 0;
i < 4; ++
i) {
38 canvas->
translate(96.0f + 192.0f *
i, 96.0f + 192.0f * j);
39 canvas->
rotate(18.0f * (
i + 4 * j));
#define SkColorSetRGB(r, g, b)
constexpr SkColor SK_ColorWHITE
void drawRect(const SkRect &rect, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
void rotate(SkScalar degrees)
void scale(SkScalar sx, SkScalar sy)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
static float min(float r, float g, float b)
sk_sp< const SkImage > image
sk_sp< SkBlender > blender SkRect rect
const myers::Point & get(const myers::Segment &)
DEF_SIMPLE_GM_CAN_FAIL(repeated_bitmap, canvas, errorMsg, 576, 576)
static skiagm::DrawResult draw_rotated_image(SkCanvas *canvas, const SkImage *image, SkString *errorMsg)
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)