31 paint.setAntiAlias(
true);
47 paint.setAntiAlias(
true);
constexpr SkColor SK_ColorTRANSPARENT
constexpr SkColor SK_ColorRED
void drawPath(const SkPath &path, const SkPaint &paint)
void drawCircle(SkScalar cx, SkScalar cy, SkScalar radius, const SkPaint &paint)
@ kStroke_Style
set to stroke geometry
static sk_sp< SkSurface > new_surface(int width, int height)
static void draw_fatpath(SkCanvas *canvas, SkSurface *surface, const SkPath &path)
static void draw_pixel_centers(SkCanvas *canvas)
#define DEF_SIMPLE_GM(NAME, CANVAS, W, H)
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
SK_API bool FillPathWithPaint(const SkPath &src, const SkPaint &paint, SkPath *dst, const SkRect *cullRect, SkScalar resScale=1)
static SkImageInfo MakeN32Premul(int width, int height)