Go to the source code of this file.
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Pixmap_writable_addr |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
true |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file Pixmap_writable_addr.cpp.
4 {
10 SkDebugf(
"pixmap.writable_addr() %c= (void *)storage\n",
11 pixmap.writable_addr() == (void *)storage ? '=' : '!');
12 pixmap.erase(0x00000000);
13 *(
SkPMColor*)pixmap.writable_addr() = 0xFFFFFFFF;
14 SkDebugf(
"pixmap.getColor(0, 1) %c= 0x00000000\n",
15 pixmap.getColor(0, 1) == 0x00000000 ? '=' : '!');
16 SkDebugf(
"pixmap.getColor(0, 0) %c= 0xFFFFFFFF\n",
17 pixmap.getColor(0, 0) == 0xFFFFFFFF ? '=' : '!');
18}
19}
@ 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)
static SkImageInfo MakeN32(int width, int height, SkAlphaType at)