4REG_FIDDLE(Canvas_drawBitmapRect_3, 256, 64,
false, 0) {
6 uint32_t pixels[][2] = { { 0x00000000, 0x55550000},
7 { 0xAAAA0000, 0xFFFF0000} };
10 (
void*) pixels,
sizeof(pixels[0]));
REG_FIDDLE(Canvas_drawBitmapRect_3, 256, 64, false, 0)
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorGREEN
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void translate(SkScalar dx, SkScalar dy)
void drawImageRect(const SkImage *, const SkRect &src, const SkRect &dst, const SkSamplingOptions &, const SkPaint *, SrcRectConstraint)
void scale(SkScalar sx, SkScalar sy)
static sk_sp< SkColorFilter > Blend(const SkColor4f &c, sk_sp< SkColorSpace >, SkBlendMode mode)
static SkImageInfo MakeN32Premul(int width, int height)
static constexpr SkRect MakeWH(float w, float h)