• Home
  • Raw
  • Download

Lines Matching refs:SkIRect

14 static void Union(SkRegion* rgn, const SkIRect& rect) {  in Union()
26 Union(&r, SkIRect::MakeXYWH(0, 0, 1, 1)); in test_fromchrome()
27 TEST_NO_INTERSECT(r, SkIRect::MakeXYWH(0, 0, 0, 0)); in test_fromchrome()
28 TEST_INTERSECT(r, SkIRect::MakeXYWH(0, 0, 2, 2)); in test_fromchrome()
29 TEST_INTERSECT(r, SkIRect::MakeXYWH(-1, 0, 2, 2)); in test_fromchrome()
30 TEST_INTERSECT(r, SkIRect::MakeXYWH(-1, -1, 2, 2)); in test_fromchrome()
31 TEST_INTERSECT(r, SkIRect::MakeXYWH(0, -1, 2, 2)); in test_fromchrome()
32 TEST_INTERSECT(r, SkIRect::MakeXYWH(-1, -1, 3, 3)); in test_fromchrome()
34 Union(&r, SkIRect::MakeXYWH(0, 0, 3, 3)); in test_fromchrome()
35 Union(&r, SkIRect::MakeXYWH(10, 0, 3, 3)); in test_fromchrome()
36 Union(&r, SkIRect::MakeXYWH(0, 10, 13, 3)); in test_fromchrome()
37 TEST_INTERSECT(r, SkIRect::MakeXYWH(-1, -1, 2, 2)); in test_fromchrome()
38 TEST_INTERSECT(r, SkIRect::MakeXYWH(2, -1, 2, 2)); in test_fromchrome()
39 TEST_INTERSECT(r, SkIRect::MakeXYWH(2, 2, 2, 2)); in test_fromchrome()
40 TEST_INTERSECT(r, SkIRect::MakeXYWH(-1, 2, 2, 2)); in test_fromchrome()
42 TEST_INTERSECT(r, SkIRect::MakeXYWH(9, -1, 2, 2)); in test_fromchrome()
43 TEST_INTERSECT(r, SkIRect::MakeXYWH(12, -1, 2, 2)); in test_fromchrome()
44 TEST_INTERSECT(r, SkIRect::MakeXYWH(12, 2, 2, 2)); in test_fromchrome()
45 TEST_INTERSECT(r, SkIRect::MakeXYWH(9, 2, 2, 2)); in test_fromchrome()
47 TEST_INTERSECT(r, SkIRect::MakeXYWH(0, -1, 13, 5)); in test_fromchrome()
48 TEST_INTERSECT(r, SkIRect::MakeXYWH(1, -1, 11, 5)); in test_fromchrome()
49 TEST_INTERSECT(r, SkIRect::MakeXYWH(2, -1, 9, 5)); in test_fromchrome()
50 TEST_INTERSECT(r, SkIRect::MakeXYWH(2, -1, 8, 5)); in test_fromchrome()
51 TEST_INTERSECT(r, SkIRect::MakeXYWH(3, -1, 8, 5)); in test_fromchrome()
53 TEST_INTERSECT(r, SkIRect::MakeXYWH(0, 1, 13, 1)); in test_fromchrome()
54 TEST_INTERSECT(r, SkIRect::MakeXYWH(1, 1, 11, 1)); in test_fromchrome()
55 TEST_INTERSECT(r, SkIRect::MakeXYWH(2, 1, 9, 1)); in test_fromchrome()
56 TEST_INTERSECT(r, SkIRect::MakeXYWH(2, 1, 8, 1)); in test_fromchrome()
57 TEST_INTERSECT(r, SkIRect::MakeXYWH(3, 1, 8, 1)); in test_fromchrome()
59 TEST_INTERSECT(r, SkIRect::MakeXYWH(0, 0, 13, 13)); in test_fromchrome()
60 TEST_INTERSECT(r, SkIRect::MakeXYWH(0, 1, 13, 11)); in test_fromchrome()
61 TEST_INTERSECT(r, SkIRect::MakeXYWH(0, 2, 13, 9)); in test_fromchrome()
62 TEST_INTERSECT(r, SkIRect::MakeXYWH(0, 2, 13, 8)); in test_fromchrome()
68 Union(&container, SkIRect::MakeXYWH(0, 0, 40, 20)); in test_fromchrome()
69 Union(&container, SkIRect::MakeXYWH(30, 20, 10, 20)); in test_fromchrome()
70 TEST_NO_CONTAINS(container, SkIRect::MakeXYWH(0, 0, 10, 39)); in test_fromchrome()
71 TEST_NO_CONTAINS(container, SkIRect::MakeXYWH(29, 0, 10, 39)); in test_fromchrome()
75 Union(&rgn, SkIRect::MakeXYWH(0, 0, 10, 10)); in test_fromchrome()
76 Union(&rgn, SkIRect::MakeLTRB(5, 10, 20, 20)); in test_fromchrome()
77 TEST_INTERSECT(rgn, SkIRect::MakeXYWH(15, 0, 5, 11)); in test_fromchrome()
82 SkRegion valid(SkIRect::MakeWH(10, 10)); in test_empties()
110 static SkIRect randRect(SkRandom& rand) { in randRect()
115 return SkIRect::MakeXYWH(x, y, w >> 1, h >> 1); in randRect()
131 static bool slow_contains(const SkRegion& outer, const SkIRect& r) { in slow_contains()
145 SkIRect r = iter.rect(); in test_contains_iter()
161 SkIRect r = a.getBounds(); in contains_proc()
174 SkIRect r = iter.rect(); in test_intersects_iter()
205 static void rand_rect(SkIRect* rect, SkRandom& rand) { in rand_rect()
213 static bool test_rects(const SkIRect rect[], int count) { in test_rects()
235 const SkIRect r2[] = { in DEF_TEST()
241 const SkIRect rects[] = { in DEF_TEST()
254 SkIRect rect[N]; in DEF_TEST()
300 Union(&complexRegion, SkIRect::MakeXYWH(0, 0, 1, 1)); in DEF_TEST()
301 Union(&complexRegion, SkIRect::MakeXYWH(0, 0, 3, 3)); in DEF_TEST()
302 Union(&complexRegion, SkIRect::MakeXYWH(10, 0, 3, 3)); in DEF_TEST()
303 Union(&complexRegion, SkIRect::MakeXYWH(0, 10, 13, 3)); in DEF_TEST()
306 Union(&complexRegion, SkIRect::MakeXYWH(10, 20, 3, 3)); in DEF_TEST()
307 Union(&complexRegion, SkIRect::MakeXYWH(0, 20, 3, 3)); in DEF_TEST()
402 const SkIRect neg = SkIRect::MakeXYWH(-big, -big, 10, 10); in DEF_TEST()
403 const SkIRect pos = SkIRect::MakeXYWH( big, big, 10, 10); 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()
442 SkIRect ir = path.getBounds().round(); in DEF_TEST()
467 rgn.setPath(path, SkRegion{SkIRect{0, 0, 24, 24}}); in DEF_TEST()
484 REPORTER_ASSERT(reporter, SkIRect::MakeEmpty() == eRect); in DEF_TEST()
494 REPORTER_ASSERT(reporter, SkIRect::MakeEmpty() == rRect); in DEF_TEST()
502 REPORTER_ASSERT(reporter, SkIRect::MakeEmpty() == iRect); in DEF_TEST()
510 REPORTER_ASSERT(reporter, SkIRect::MakeEmpty() == cRect); in DEF_TEST()