Lines Matching defs:path2

2242             SkPath path2 = path;
2243 path2.lineTo(10, 10);
2244 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path2, false, &r, &d, &s));
2245 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path2, true, &r, &d, &s));
2246 path2 = path;
2247 path2.moveTo(10, 10);
2248 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path2, false, &r, &d, &s));
2249 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path2, true, &r, &d, &s));
2250 path2 = path;
2251 path2.addRect(testRect, dir, start);
2252 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path2, false, &r, &d, &s));
2253 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path2, true, &r, &d, &s));
2255 path2.reset();
2261 path2.moveTo(verbPts[0]);
2264 path2.lineTo(verbPts[1]);
2271 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path2, false, &r, &d, &s));
2272 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path2, true, &r, &d, &s));
2274 path2.lineTo(firstPt);
2275 check_simple_rect(reporter, path2, false, testRect, dir, start);
2277 path2.close();
2278 check_simple_rect(reporter, path2, true, testRect, dir, start);
2280 path2.reset();
2281 path2.addRect(emptyRect, dir, start);
2282 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path2, false, &r, &d, &s));
2283 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path2, true, &r, &d, &s));
2286 path2.reset();
2287 path2.addRect(degenRect, dir, start);
2288 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path2, false, &r, &d, &s));
2289 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path2, true, &r, &d, &s));
2292 path2.reset();
2293 path2.addRect(degenRect, dir, start);
2294 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path2, false, &r, &d, &s));
2295 REPORTER_ASSERT(reporter, !SkPathPriv::IsSimpleRect(path2, true, &r, &d, &s));
2304 path2.reset();
2305 path2.addRect(swapRect, dir, start);
2306 check_simple_rect(reporter, path2, true, testRect, swapDir, kXSwapStarts[start]);
2309 path2.reset();
2310 path2.addRect(swapRect, dir, start);
2311 check_simple_rect(reporter, path2, true, testRect, swapDir, kYSwapStarts[start]);
5554 SkPath path2;
5557 path2 = *path;
5558 REPORTER_ASSERT(reporter, isa_proc(path2));
5559 REPORTER_ASSERT(reporter, SkPathPriv::GetConvexityOrUnknown(path2) == SkPathConvexity::kConvex);
5562 path->transform(x.fIM, &path2);
5564 REPORTER_ASSERT(reporter, isa_proc(path2));
5565 REPORTER_ASSERT(reporter, SkPathPriv::GetConvexityOrUnknown(path2) == SkPathConvexity::kConvex);
5570 path->transform(x.fTM, &path2);
5572 REPORTER_ASSERT(reporter, isa_proc(path2));
5574 REPORTER_ASSERT(reporter, conditional_convex(path2, isAxisAligned));
5578 path->transform(x.fSM, &path2);
5580 REPORTER_ASSERT(reporter, isa_proc(path2));
5582 REPORTER_ASSERT(reporter, conditional_convex(path2, isAxisAligned));
5588 path->transform(x.fRM, &path2);
5590 REPORTER_ASSERT(reporter, SkPathPriv::GetConvexityOrUnknown(path2) != SkPathConvexity::kConvex);
5594 REPORTER_ASSERT(reporter, !isa_proc(path2));
5780 SkPath path2;
5787 path2.addPath(path1); // this must correctly update its "last-move-to" so that when
5790 // at this point, path1 and path2 should be the same...
5793 test_before_after_lineto(path2, {20,50}, {20,30});
5831 SkPath path2;
5833 path.transform(SkMatrix::Scale(scale, scale), &path2);
5834 SkPathPriv::ForceComputeConvexity(path2);
5835 REPORTER_ASSERT(r, path2.isConvex());