Go to the source code of this file.
|
| REG_FIDDLE (Image_RasterFromPixmap, 256, 256, true, 0) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Image_RasterFromPixmap |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
true |
, |
|
|
0 |
|
|
) |
| |
Definition at line 5 of file Image_RasterFromPixmap.cpp.
5 {
7 int* countPtr = static_cast<int*>(context);
8 *countPtr += 1;
9 }
10
14 int releaseCount = 0;
16 SkDebugf(
"before reset: %d\n", releaseCount);
18 SkDebugf(
"after reset: %d\n", releaseCount);
19}
20}
@ 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)
static SkImageInfo MakeN32(int width, int height, SkAlphaType at)