4REG_FIDDLE(Bitmap_tryAllocN32Pixels, 256, 160,
false, 0) {
7 if (
bitmap.tryAllocN32Pixels(80, 80)) {
13 for (
int x : { 0, 30, 60, 90 } ) {
REG_FIDDLE(Bitmap_tryAllocN32Pixels, 256, 160, false, 0)
constexpr SkColor SK_ColorTRANSPARENT
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
static constexpr SkIRect MakeWH(int32_t w, int32_t h)
static constexpr SkIRect MakeXYWH(int32_t x, int32_t y, int32_t w, int32_t h)