Lines Matching refs:SkRegion
14 static void Union(SkRegion* rgn, const SkIRect& rect) { in Union()
15 rgn->op(rect, SkRegion::kUnion_Op); in Union()
25 SkRegion r; in test_fromchrome()
67 SkRegion container; in test_fromchrome()
74 SkRegion rgn; in test_fromchrome()
82 SkRegion valid(SkIRect::MakeWH(10, 10)); in test_empties()
83 SkRegion empty, empty2; in test_empties()
100 SkRegion openClip; in test_empties()
118 static void randRgn(SkRandom& rand, SkRegion* rgn, int n) { in randRgn()
121 rgn->op(randRect(rand), SkRegion::kUnion_Op); in randRgn()
125 static bool slow_contains(const SkRegion& outer, const SkRegion& inner) { in slow_contains()
126 SkRegion tmp; in slow_contains()
127 tmp.op(outer, inner, SkRegion::kUnion_Op); in slow_contains()
131 static bool slow_contains(const SkRegion& outer, const SkIRect& r) { in slow_contains()
132 SkRegion tmp; in slow_contains()
133 tmp.op(outer, SkRegion(r), SkRegion::kUnion_Op); in slow_contains()
137 static bool slow_intersects(const SkRegion& outer, const SkRegion& inner) { in slow_intersects()
138 SkRegion tmp; in slow_intersects()
139 return tmp.op(outer, inner, SkRegion::kIntersect_Op); in slow_intersects()
142 static void test_contains_iter(skiatest::Reporter* reporter, const SkRegion& rgn) { in test_contains_iter()
143 SkRegion::Iterator iter(rgn); in test_contains_iter()
154 const SkRegion& a, const SkRegion& b) { in contains_proc()
171 static void test_intersects_iter(skiatest::Reporter* reporter, const SkRegion& rgn) { in test_intersects_iter()
172 SkRegion::Iterator iter(rgn); in test_intersects_iter()
183 const SkRegion& a, const SkRegion& b) { in intersects_proc()
194 const SkRegion& a, const SkRegion&)) { in test_proc() argument
197 SkRegion outer; in test_proc()
199 SkRegion inner; in test_proc()
214 SkRegion rgn0, rgn1; in test_rects()
217 rgn0.op(rect[i], SkRegion::kUnion_Op); in test_rects()
251 SkRegion rgn0, rgn1; in DEF_TEST()
269 static void test_write(const SkRegion& region, skiatest::Reporter* r) { in test_write()
276 SkRegion copy; in test_write()
283 SkRegion region; in DEF_TEST()
294 nonEmpty = region.op({50, 50, 100, 100}, SkRegion::kUnion_Op); in DEF_TEST()
299 SkRegion complexRegion; in DEF_TEST()
314 SkRegion region; in DEF_TEST()
408 SkRegion negR(neg); in DEF_TEST()
409 SkRegion posR(pos); in DEF_TEST()
414 SkRegion rgn; in DEF_TEST()
415 rgn.op(negR, posR, SkRegion::kUnion_Op); in DEF_TEST()
427 SkRegion clip; in DEF_TEST()
428 clip.op(SkIRect::MakeLTRB(10, 10, 15, 20), SkRegion::kUnion_Op); in DEF_TEST()
429 clip.op(SkIRect::MakeLTRB(20, 10, 25, 20), SkRegion::kUnion_Op); in DEF_TEST()
431 SkRegion rgn; in DEF_TEST()
443 SkRegion rgn; in DEF_TEST()
444 rgn.setPath(path, SkRegion(ir)); in DEF_TEST()
466 SkRegion rgn; in DEF_TEST()
467 rgn.setPath(path, SkRegion{SkIRect{0, 0, 24, 24}}); in DEF_TEST()
471 SkRegion region; in DEF_TEST()
479 SkRegion::Iterator emptyIter; in DEF_TEST()
487 SkRegion region; in DEF_TEST()
488 SkRegion::Iterator resetIter; in DEF_TEST()
498 SkRegion::Iterator iter(region); in DEF_TEST()
506 SkRegion::Cliperator clipIter(region, {0, 0, 100, 100}); in DEF_TEST()
512 SkRegion::Spanerator spanIter(region, 0, 0, 100); in DEF_TEST()