40 paint.setStrokeWidth(1.1f);
41 paint.setAntiAlias(
true);
43 for (
int i = 0;
i < loops; ++
i) {
44 for (
int j = 0; j < 1000; ++j) {
void onDraw(int loops, SkCanvas *canvas) override
const char * onGetName() override
void drawPath(const SkPath &path, const SkPaint &paint)
@ kStroke_Style
set to stroke geometry
SkPath & moveTo(SkScalar x, SkScalar y)
SkPath & cubicTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, SkScalar x3, SkScalar y3)
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
static SkImageInfo MakeN32Premul(int width, int height)