49 for (
int i = 0;
i < 10; ++
i) {
50 if (genData.p() != testData.p() || genData.w() != testData.w()) {
51 ERRORF(r,
"genData and testData not in sync.");
58 for (Verb verb : verbs) {
60 case Verb::kImplicitMove:
63 path.moveTo(genData.p());
66 path.lineTo(genData.p());
84 path.conicTo(
a,
b, genData.w());
95 auto iter = iterate.
begin();
98 for (Verb verb : verbs) {
99 auto [pathVerb, pathPts, pathWt] = *iter++;
101 case Verb::kImplicitMove:
107 startPt = lastPt = pathPts[0];
SkPoint next_point(SkRandom &rand)
DEF_TEST(SkPath_RangeIter, r)
@ kClose
SkPath::RawIter returns 0 points.
@ kCubic
SkPath::RawIter returns 4 points.
@ kConic
SkPath::RawIter returns 3 points + 1 weight.
@ kQuad
SkPath::RawIter returns 3 points.
@ kMove
SkPath::RawIter returns 1 point.
@ kLine
SkPath::RawIter returns 2 points.
#define REPORTER_ASSERT(r, cond,...)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
SkPath::RangeIter begin()