4REG_FIDDLE(Pixmap_writable_addr_2, 256, 256,
true, 0) {
10 SkDebugf(
"pixmap.writable_addr() %c= (void *)storage\n",
12 pixmap.
erase(0x00000000);
14 SkDebugf(
"pixmap.getColor(0, 0) %c= 0x00000000\n",
15 pixmap.
getColor(0, 0) == 0x00000000 ?
'=' :
'!');
16 SkDebugf(
"pixmap.getColor(1, 2) %c= 0xFFFFFFFF\n",
17 pixmap.
getColor(1, 2) == 0xFFFFFFFF ?
'=' :
'!');
REG_FIDDLE(Pixmap_writable_addr_2, 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 draw(SkCanvas *canvas, SkRect &target, int x, int y)
SkColor getColor(int x, int y) const
bool erase(SkColor color, const SkIRect &subset) const
void * writable_addr() const
static SkImageInfo MakeN32(int width, int height, SkAlphaType at)