28 int n = rand.
nextU() & 3;
31 for (
int i = 0;
i < n; ++
i) {
51 for (
int i = 0;
i < 1000; ++
i) {
83 auto handle = [
this](
int verb,
const SkPoint pts[]) {
91 for (
int i = 0;
i < loops; ++
i) {
101 for (
int i = 0;
i < loops; ++
i) {
108 for (
int i = 0;
i < loops; ++
i) {
110 while (
auto r = iter.
next()) {
111 handle((
int)r.fEdge, r.fPts);
static int rand_pts(SkRandom &rand, SkPoint pts[4])
const char * gPathIterNames[]
bool isSuitableFor(Backend backend) override
void onDraw(int loops, SkCanvas *) override
const char * onGetName() override
PathIterBench(PathIterType t)
Verb next(SkPoint pts[4])
SkPath & moveTo(SkScalar x, SkScalar y)
SkPath & lineTo(SkScalar x, SkScalar y)
SkPath & quadTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2)
SkPath & cubicTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, SkScalar x3, SkScalar y3)