1 // Copyright 2019 Google LLC.
2 // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
3 #include "tools/fiddle/examples.h"
4 // HASH=bca6379ccef62cb081b10db7381deb27
5 REG_FIDDLE(Path_countPoints, 256, 256, true, 0) {
6 void draw(SkCanvas* canvas) {
7 auto debugster = [](const char* prefix, const SkPath& path) -> void {
8 SkDebugf("%s point count: %d\n", prefix, path.countPoints());
11 debugster("empty", path);
13 debugster("zero line", path);
17 debugster("line", path);
19 debugster("second move", path);