• Home
  • Raw
  • Download

Lines Matching refs:path1

1170     SkPath path0, path1;  in test_bounds()  local
1173 add_rect(&path1, rects[i]); in test_bounds()
1176 REPORTER_ASSERT(reporter, path0.getBounds() == path1.getBounds()); in test_bounds()
2159 SkPath path1; in test_isRect() local
2160 path1.moveTo(r1[0].fX, r1[0].fY); in test_isRect()
2162 path1.lineTo(r1[index].fX, r1[index].fY); in test_isRect()
2164 path1.close(); in test_isRect()
2165 path1.lineTo(1, 0); in test_isRect()
2166 REPORTER_ASSERT(reporter, !path1.isRect(nullptr)); in test_isRect()
2169 path1.reset(); in test_isRect()
2170 path1.moveTo(r1[0].fX, r1[0].fY); in test_isRect()
2173 path1.moveTo(1, .5f); in test_isRect()
2175 path1.lineTo(r1[index].fX, r1[index].fY); in test_isRect()
2177 path1.close(); in test_isRect()
2178 REPORTER_ASSERT(reporter, !path1.isRect(nullptr)); in test_isRect()
2181 path1.reset(); in test_isRect()
2183 path1.moveTo(r1[index - 1].fX, r1[index - 1].fY); in test_isRect()
2184 path1.lineTo(r1[index].fX, r1[index].fY); in test_isRect()
2186 path1.close(); in test_isRect()
2187 REPORTER_ASSERT(reporter, !path1.isRect(nullptr)); in test_isRect()
2190 path1.reset(); in test_isRect()
2191 path1.moveTo(r1[0].fX, r1[0].fY); in test_isRect()
2194 path1.quadTo(1, .5f, 1, .5f); in test_isRect()
2196 path1.lineTo(r1[index].fX, r1[index].fY); in test_isRect()
2198 path1.close(); in test_isRect()
2199 REPORTER_ASSERT(reporter, !path1.isRect(nullptr)); in test_isRect()
2202 path1.reset(); in test_isRect()
2203 path1.moveTo(r1[0].fX, r1[0].fY); in test_isRect()
2206 path1.cubicTo(1, .5f, 1, .5f, 1, .5f); in test_isRect()
2208 path1.lineTo(r1[index].fX, r1[index].fY); in test_isRect()
2210 path1.close(); in test_isRect()
2211 REPORTER_ASSERT(reporter, !path1.isRect(nullptr)); in test_isRect()
2465 SkPath path1; in test_isNestedFillRects() local
2467 path1.addRect(-1, -1, 2, 2, SkPathDirection::kCW); in test_isNestedFillRects()
2469 path1.moveTo(r1[0].fX, r1[0].fY); in test_isNestedFillRects()
2471 path1.lineTo(r1[index].fX, r1[index].fY); in test_isNestedFillRects()
2473 path1.close(); in test_isNestedFillRects()
2474 path1.lineTo(1, 0); in test_isNestedFillRects()
2476 path1.addRect(-1, -1, 2, 2, SkPathDirection::kCCW); in test_isNestedFillRects()
2478 REPORTER_ASSERT(reporter, !SkPathPriv::IsNestedFillRects(path1, nullptr)); in test_isNestedFillRects()
2481 path1.reset(); in test_isNestedFillRects()
2483 path1.addRect(-1, -1, 2, 2, SkPathDirection::kCW); in test_isNestedFillRects()
2485 path1.moveTo(r1[0].fX, r1[0].fY); in test_isNestedFillRects()
2488 path1.moveTo(1, .5f); in test_isNestedFillRects()
2490 path1.lineTo(r1[index].fX, r1[index].fY); in test_isNestedFillRects()
2492 path1.close(); in test_isNestedFillRects()
2494 path1.addRect(-1, -1, 2, 2, SkPathDirection::kCCW); in test_isNestedFillRects()
2496 REPORTER_ASSERT(reporter, !SkPathPriv::IsNestedFillRects(path1, nullptr)); in test_isNestedFillRects()
2499 path1.reset(); in test_isNestedFillRects()
2501 path1.addRect(-1, -1, 2, 2, SkPathDirection::kCW); in test_isNestedFillRects()
2504 path1.moveTo(r1[index - 1].fX, r1[index - 1].fY); in test_isNestedFillRects()
2505 path1.lineTo(r1[index].fX, r1[index].fY); in test_isNestedFillRects()
2507 path1.close(); in test_isNestedFillRects()
2509 path1.addRect(-1, -1, 2, 2, SkPathDirection::kCCW); in test_isNestedFillRects()
2511 REPORTER_ASSERT(reporter, !SkPathPriv::IsNestedFillRects(path1, nullptr)); in test_isNestedFillRects()
2514 path1.reset(); in test_isNestedFillRects()
2516 path1.addRect(-1, -1, 2, 2, SkPathDirection::kCW); in test_isNestedFillRects()
2518 path1.moveTo(r1[0].fX, r1[0].fY); in test_isNestedFillRects()
2521 path1.quadTo(1, .5f, 1, .5f); in test_isNestedFillRects()
2523 path1.lineTo(r1[index].fX, r1[index].fY); in test_isNestedFillRects()
2525 path1.close(); in test_isNestedFillRects()
2527 path1.addRect(-1, -1, 2, 2, SkPathDirection::kCCW); in test_isNestedFillRects()
2529 REPORTER_ASSERT(reporter, !SkPathPriv::IsNestedFillRects(path1, nullptr)); in test_isNestedFillRects()
2532 path1.reset(); in test_isNestedFillRects()
2534 path1.addRect(-1, -1, 2, 2, SkPathDirection::kCW); in test_isNestedFillRects()
2536 path1.moveTo(r1[0].fX, r1[0].fY); in test_isNestedFillRects()
2539 path1.cubicTo(1, .5f, 1, .5f, 1, .5f); in test_isNestedFillRects()
2541 path1.lineTo(r1[index].fX, r1[index].fY); in test_isNestedFillRects()
2543 path1.close(); in test_isNestedFillRects()
2545 path1.addRect(-1, -1, 2, 2, SkPathDirection::kCCW); in test_isNestedFillRects()
2547 REPORTER_ASSERT(reporter, !SkPathPriv::IsNestedFillRects(path1, nullptr)); in test_isNestedFillRects()
2550 path1.reset(); in test_isNestedFillRects()
2551 path1.addRect(1, 1, 3, 3, SkPathDirection::kCW); in test_isNestedFillRects()
2552 path1.addRect(2, 2, 4, 4, SkPathDirection::kCW); in test_isNestedFillRects()
2553 REPORTER_ASSERT(reporter, !SkPathPriv::IsNestedFillRects(path1, nullptr)); in test_isNestedFillRects()
5779 SkPath path1; in test_addPath_and_injected_moveTo() local
5782 path1.moveTo(230, 230); // Needed to show the bug: a moveTo before the addRect in test_addPath_and_injected_moveTo()
5785 path1.moveTo(20,30).lineTo(40,30).lineTo(40,50).lineTo(20,50).close(); in test_addPath_and_injected_moveTo()
5787 path2.addPath(path1); // this must correctly update its "last-move-to" so that when in test_addPath_and_injected_moveTo()
5792 test_before_after_lineto(path1, {20,50}, {20,30}); in test_addPath_and_injected_moveTo()