Go to the source code of this file.
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Surface_WrapPixels_WithReleaseProc |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
true |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file Surface_MakeRasterDirectReleaseProc.cpp.
4 {
6 if (pixels == context) {
7 SkDebugf(
"expected release context\n");
8 }
10 }
11
14 const size_t rowBytes =
info.minRowBytes();
24 for (
int y = 0;
y <
info.height(); ++
y) {
25 for (
int x = 0;
x <
info.width(); ++
x) {
26 SkDebugf(
"%c", *colorPtr++ == pmWhite ?
'-' :
'x');
27 }
29 }
30 }
31}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
constexpr SkColor SK_ColorWHITE
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
SK_API void sk_free(void *)
static void * sk_malloc_throw(size_t size)
static void release_direct_surface_storage(void *pixels, void *context)
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawPoint(SkScalar x, SkScalar y, const SkPaint &paint)
void clear(SkColor color)
SK_API sk_sp< SkSurface > WrapPixels(const SkImageInfo &imageInfo, void *pixels, size_t rowBytes, const SkSurfaceProps *surfaceProps=nullptr)
static SkImageInfo MakeN32Premul(int width, int height)