4REG_FIDDLE(Surface_MakeRasterN32Premul, 256, 256,
true, 0) {
10 if (
surface->peekPixels(&pixmap)) {
11 const uint32_t* colorPtr = pixmap.
addr32();
17 SkDebugf(
"%c", colorPtr[
x] == pmWhite ?
'-' :
'x');
constexpr SkColor SK_ColorWHITE
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
REG_FIDDLE(Surface_MakeRasterN32Premul, 256, 256, true, 0)
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawPoint(SkScalar x, SkScalar y, const SkPaint &paint)
void clear(SkColor color)
const uint32_t * addr32() const
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
static SkImageInfo MakeN32Premul(int width, int height)