5REG_FIDDLE(Bitmap_tryAllocPixelsFlags, 256, 256,
true, 0) {
10 SkDebugf(
"bitmap allocation failed!\n");
12 SkDebugf(
"bitmap allocation succeeded!\n");
@ kOpaque_SkAlphaType
pixel is opaque
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
@ kZeroPixels_AllocFlag
zero pixel memory. No effect. This is the default.
#define REG_FIDDLE(NAME, W, H, TEXT, I)
static SkImageInfo MakeN32(int width, int height, SkAlphaType at)