1cb93a386Sopenharmony_ci#if 0  // Disabled until updated to use current API.
2cb93a386Sopenharmony_ci// Copyright 2019 Google LLC.
3cb93a386Sopenharmony_ci// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
4cb93a386Sopenharmony_ci#include "tools/fiddle/examples.h"
5cb93a386Sopenharmony_ci// HASH=2f53df9201769ab7e7c0e164a1334309
6cb93a386Sopenharmony_ciREG_FIDDLE(Path_Iter, 256, 128, false, 0) {
7cb93a386Sopenharmony_civoid draw(SkCanvas* canvas) {
8cb93a386Sopenharmony_ci    SkPaint paint;
9cb93a386Sopenharmony_ci    paint.setAntiAlias(true);
10cb93a386Sopenharmony_ci    paint.setTextSize(256);
11cb93a386Sopenharmony_ci    SkPath asterisk, path;
12cb93a386Sopenharmony_ci    paint.getTextPath("*", 1, 50, 192, &asterisk);
13cb93a386Sopenharmony_ci    SkPath::Iter iter(asterisk, true);
14cb93a386Sopenharmony_ci    SkPoint start[4], pts[4];
15cb93a386Sopenharmony_ci    iter.next(start);  // skip moveTo
16cb93a386Sopenharmony_ci    iter.next(start);  // first quadTo
17cb93a386Sopenharmony_ci    path.moveTo((start[0] + start[1]) * 0.5f);
18cb93a386Sopenharmony_ci    while (SkPath::kClose_Verb != iter.next(pts)) {
19cb93a386Sopenharmony_ci        path.quadTo(pts[0], (pts[0] + pts[1]) * 0.5f);
20cb93a386Sopenharmony_ci    }
21cb93a386Sopenharmony_ci    path.quadTo(start[0], (start[0] + start[1]) * 0.5f);
22cb93a386Sopenharmony_ci    canvas->drawPath(path, paint);
23cb93a386Sopenharmony_ci}
24cb93a386Sopenharmony_ci}  // END FIDDLE
25cb93a386Sopenharmony_ci#endif  // Disabled until updated to use current API.
26