4REG_FIDDLE(Image_RasterFromPixmap, 256, 256,
true, 0) {
6 int* countPtr =
static_cast<int*
>(context);
15 SkDebugf(
"before reset: %d\n", releaseCount);
17 SkDebugf(
"after reset: %d\n", releaseCount);
REG_FIDDLE(Image_RasterFromPixmap, 256, 256, true, 0)
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static void releaseProc(const void *ptr, void *context)
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void reset(T *ptr=nullptr)
SK_API sk_sp< SkImage > RasterFromPixmap(const SkPixmap &pixmap, RasterReleaseProc rasterReleaseProc, ReleaseContext releaseContext)
sk_sp< const SkImage > image
static SkImageInfo MakeN32(int width, int height, SkAlphaType at)