32 fName.printf(
"lines_%g_%s",
width, doAA ?
"AA" :
"BW");
35 for (
int i = 0;
i < PTS; ++
i) {
50 paint.setAntiAlias(fDoAA);
51 paint.setStrokeWidth(fStrokeWidth);
53 for (
int i = 0;
i < loops;
i++) {
virtual void setupPaint(SkPaint *paint)
LineBench(SkScalar width, bool doAA)
const char * onGetName() override
void onDraw(int loops, SkCanvas *canvas) override
void drawPoints(PointMode mode, size_t count, const SkPoint pts[], const SkPaint &paint)
@ kLines_PointMode
draw each pair of points as a line segment
@ kStroke_Style
set to stroke geometry
void set(float x, float y)