Go to the source code of this file.
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Image_RasterFromPixmap |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
true |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file Image_RasterFromPixmap.cpp.
4 {
6 int* countPtr = static_cast<int*>(context);
7 *countPtr += 1;
8 }
9
13 int releaseCount = 0;
15 SkDebugf(
"before reset: %d\n", releaseCount);
17 SkDebugf(
"after reset: %d\n", releaseCount);
18}
19}
@ 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)