42 {
43 SkPoint p0[] = {{0, 0}, {60, 0}, {90, 40}};
44 SkPoint p1[] = {{0, 0}, {0, 40}, {60, 40}, {40, 0}};
45 SkPoint p2[] = {{0, 0}, {40, 40}, {80, 40}, {40, 0}};
46 SkPoint p3[] = {{10, 0}, {50, 0}, {60, 10}, {60, 30}, {50, 40},
47 {10, 40}, {0, 30}, {0, 10}};
49 SkPoint p5[] = {{0, 0}, {20, 20}, {0, 40}, {60, 20}};
50 SkPoint p6[] = {{0, 40}, {0, 30}, {15, 30}, {15, 20}, {30, 20},
51 {30, 10}, {45, 10}, {45, 0}, {60, 0}, {60, 40}};
52 SkPoint p7[] = {{0, 20}, {20, 20}, {30, 0}, {40, 20}, {60, 20},
53 {45, 30}, {55, 50}, {30, 40}, {5, 50}, {15, 30}};
54
58 }
59
60 struct Polygons {
62 size_t fPointNum;
63 } pgs[] = {
72 };
73
75 for (
size_t pgIndex = 0; pgIndex <
std::size(pgs); ++pgIndex) {
77 b.moveTo(pgs[pgIndex].fPoints[0].fX,
78 pgs[pgIndex].fPoints[0].fY);
79 for (size_t ptIndex = 1; ptIndex < pgs[pgIndex].fPointNum; ++ptIndex) {
80 b.lineTo(pgs[pgIndex].fPoints[ptIndex].fX,
81 pgs[pgIndex].fPoints[ptIndex].fY);
82 }
85 }
86 }
#define SkScalarSin(radians)
#define SkScalarCos(radians)
void set(float x, float y)