Lines Matching defs:start
967 // start with a moveTo
2066 SkPoint c3[] = {{0, 0}, {1, 0}, {1, 2}, {0, 2}, {0, 1}, {0, 0}}; // hit the start
2070 // like c2, but we overshoot the start point
2215 const SkRect& rect, SkPathDirection dir, unsigned start) {
2224 REPORTER_ASSERT(reporter, s == start);
2235 for (int start = 0; start < 4; ++start) {
2238 path.addRect(testRect, dir, start);
2239 check_simple_rect(reporter, path, true, testRect, dir, start);
2241 check_simple_rect(reporter, path, true, testRect, dir, start);
2251 path2.addRect(testRect, dir, start);
2275 check_simple_rect(reporter, path2, false, testRect, dir, start);
2278 check_simple_rect(reporter, path2, true, testRect, dir, start);
2281 path2.addRect(emptyRect, dir, start);
2287 path2.addRect(degenRect, dir, start);
2293 path2.addRect(degenRect, dir, start);
2296 // An inverted rect makes a rect path, but changes the winding dir and start point.
2305 path2.addRect(swapRect, dir, start);
2306 check_simple_rect(reporter, path2, true, testRect, swapDir, kXSwapStarts[start]);
2310 path2.addRect(swapRect, dir, start);
2311 check_simple_rect(reporter, path2, true, testRect, swapDir, kYSwapStarts[start]);
2322 unsigned start;
2324 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path, false, &rect, &dir, &start));
2325 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path, true, &rect, &dir, &start));
2333 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path, false, &rect, &dir, &start));
2334 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path, true, &rect, &dir, &start));
2342 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path, false, &rect, &dir, &start));
2343 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path, true, &rect, &dir, &start));
2351 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path, false, &rect, &dir, &start));
2352 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path, true, &rect, &dir, &start));
3446 for (unsigned start = 0; start < 4; ++start) {
3448 path.addOval(SkRect::MakeXYWH(20, 10, 5, 5), inDir, start);
3528 unsigned start = 0;
3534 // Defaults to dir = CW and start = 1
3540 // an oval rotated 90 degrees is still an oval. The start index changes from 1 to 2. Direction
3542 REPORTER_ASSERT(reporter, SkPathPriv::IsOval(tmp, nullptr, &dir, &start));
3543 REPORTER_ASSERT(reporter, 2 == start);
3582 REPORTER_ASSERT(reporter, SkPathPriv::IsOval(path, nullptr, &dir, &start));
3584 REPORTER_ASSERT(reporter, 1 == start);
3718 static inline SkScalar oval_start_index_to_angle(unsigned start) {
3719 switch (start) {
3743 static void check_oval_arc(skiatest::Reporter* reporter, SkScalar start, SkScalar sweep,
3753 REPORTER_ASSERT(reporter, oval_start_index_to_angle(s) == canonical_start_angle(start));
3760 for (SkScalar start = -360.f; start <= 360.f; start += 1.f) {
3762 path.addArc(oval, start, sweep);
3764 // to start at multiples of 90 degrees.
3765 if (std::fmod(start, 90.f) == 0) {
3766 check_oval_arc(reporter, start, sweep, path);
3771 // Test start angles that are nearly at valid oval start angles.
3772 for (float start : {-180.f, -90.f, 90.f, 180.f}) {
3775 path.addArc(oval, start + delta, sweep);
3776 check_oval_arc(reporter, start, sweep, path);