4REG_FIDDLE(Canvas_const_SkBitmap_const_SkSurfaceProps, 256, 256,
true, 0) {
13 SkDebugf(
"peekPixels should never fail.\n");
20 for (
int y = 0;
y <
bitmap.height(); ++
y) {
21 for (
int x = 0;
x <
bitmap.width(); ++
x) {
22 SkDebugf(
"%c", *pixels++ == pmWhite ?
'-' :
'x');
REG_FIDDLE(Canvas_const_SkBitmap_const_SkSurfaceProps, 256, 256, true, 0)
constexpr SkColor SK_ColorWHITE
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
@ kUnknown_SkPixelGeometry
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
bool peekPixels(SkPixmap *pixmap)
void clear(SkColor color)
void drawString(const char str[], SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
sk_sp< SkTypeface > matchFamilyStyle(const char familyName[], const SkFontStyle &) const
const uint32_t * addr32() const
sk_sp< SkFontMgr > fontMgr
font
Font Metadata and Metrics.
static SkImageInfo MakeN32Premul(int width, int height)