4REG_FIDDLE(Canvas_drawImageRect_2, 256, 256,
false, 4) {
7 for (
auto i : { 1, 2, 4, 8 } ) {
REG_FIDDLE(Canvas_drawImageRect_2, 256, 256, false, 4)
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
@ kStrict_SrcRectConstraint
sample only inside bounds; slower
void drawImageRect(const SkImage *, const SkRect &src, const SkRect &dst, const SkSamplingOptions &, const SkPaint *, SrcRectConstraint)
sk_sp< const SkImage > image
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)