Lines Matching refs:SkIRect

13 static void Union(SkRegion* rgn, const SkIRect& rect) {  in Union()
25 Union(&r, SkIRect::MakeXYWH(0, 0, 1, 1)); in test_fromchrome()
26 TEST_NO_INTERSECT(r, SkIRect::MakeXYWH(0, 0, 0, 0)); in test_fromchrome()
27 TEST_INTERSECT(r, SkIRect::MakeXYWH(0, 0, 2, 2)); in test_fromchrome()
28 TEST_INTERSECT(r, SkIRect::MakeXYWH(-1, 0, 2, 2)); in test_fromchrome()
29 TEST_INTERSECT(r, SkIRect::MakeXYWH(-1, -1, 2, 2)); in test_fromchrome()
30 TEST_INTERSECT(r, SkIRect::MakeXYWH(0, -1, 2, 2)); in test_fromchrome()
31 TEST_INTERSECT(r, SkIRect::MakeXYWH(-1, -1, 3, 3)); in test_fromchrome()
33 Union(&r, SkIRect::MakeXYWH(0, 0, 3, 3)); in test_fromchrome()
34 Union(&r, SkIRect::MakeXYWH(10, 0, 3, 3)); in test_fromchrome()
35 Union(&r, SkIRect::MakeXYWH(0, 10, 13, 3)); in test_fromchrome()
36 TEST_INTERSECT(r, SkIRect::MakeXYWH(-1, -1, 2, 2)); in test_fromchrome()
37 TEST_INTERSECT(r, SkIRect::MakeXYWH(2, -1, 2, 2)); in test_fromchrome()
38 TEST_INTERSECT(r, SkIRect::MakeXYWH(2, 2, 2, 2)); in test_fromchrome()
39 TEST_INTERSECT(r, SkIRect::MakeXYWH(-1, 2, 2, 2)); in test_fromchrome()
41 TEST_INTERSECT(r, SkIRect::MakeXYWH(9, -1, 2, 2)); in test_fromchrome()
42 TEST_INTERSECT(r, SkIRect::MakeXYWH(12, -1, 2, 2)); in test_fromchrome()
43 TEST_INTERSECT(r, SkIRect::MakeXYWH(12, 2, 2, 2)); in test_fromchrome()
44 TEST_INTERSECT(r, SkIRect::MakeXYWH(9, 2, 2, 2)); in test_fromchrome()
46 TEST_INTERSECT(r, SkIRect::MakeXYWH(0, -1, 13, 5)); in test_fromchrome()
47 TEST_INTERSECT(r, SkIRect::MakeXYWH(1, -1, 11, 5)); in test_fromchrome()
48 TEST_INTERSECT(r, SkIRect::MakeXYWH(2, -1, 9, 5)); in test_fromchrome()
49 TEST_INTERSECT(r, SkIRect::MakeXYWH(2, -1, 8, 5)); in test_fromchrome()
50 TEST_INTERSECT(r, SkIRect::MakeXYWH(3, -1, 8, 5)); in test_fromchrome()
52 TEST_INTERSECT(r, SkIRect::MakeXYWH(0, 1, 13, 1)); in test_fromchrome()
53 TEST_INTERSECT(r, SkIRect::MakeXYWH(1, 1, 11, 1)); in test_fromchrome()
54 TEST_INTERSECT(r, SkIRect::MakeXYWH(2, 1, 9, 1)); in test_fromchrome()
55 TEST_INTERSECT(r, SkIRect::MakeXYWH(2, 1, 8, 1)); in test_fromchrome()
56 TEST_INTERSECT(r, SkIRect::MakeXYWH(3, 1, 8, 1)); in test_fromchrome()
58 TEST_INTERSECT(r, SkIRect::MakeXYWH(0, 0, 13, 13)); in test_fromchrome()
59 TEST_INTERSECT(r, SkIRect::MakeXYWH(0, 1, 13, 11)); in test_fromchrome()
60 TEST_INTERSECT(r, SkIRect::MakeXYWH(0, 2, 13, 9)); in test_fromchrome()
61 TEST_INTERSECT(r, SkIRect::MakeXYWH(0, 2, 13, 8)); in test_fromchrome()
67 Union(&container, SkIRect::MakeXYWH(0, 0, 40, 20)); in test_fromchrome()
68 Union(&container, SkIRect::MakeXYWH(30, 20, 10, 20)); in test_fromchrome()
69 TEST_NO_CONTAINS(container, SkIRect::MakeXYWH(0, 0, 10, 39)); in test_fromchrome()
70 TEST_NO_CONTAINS(container, SkIRect::MakeXYWH(29, 0, 10, 39)); in test_fromchrome()
74 Union(&rgn, SkIRect::MakeXYWH(0, 0, 10, 10)); in test_fromchrome()
75 Union(&rgn, SkIRect::MakeLTRB(5, 10, 20, 20)); in test_fromchrome()
76 TEST_INTERSECT(rgn, SkIRect::MakeXYWH(15, 0, 5, 11)); in test_fromchrome()
81 SkRegion valid(SkIRect::MakeWH(10, 10)); in test_empties()
109 static SkIRect randRect(SkRandom& rand) { in randRect()
114 return SkIRect::MakeXYWH(x, y, w >> 1, h >> 1); in randRect()
130 static bool slow_contains(const SkRegion& outer, const SkIRect& r) { in slow_contains()
144 SkIRect r = iter.rect(); in test_contains_iter()
160 SkIRect r = a.getBounds(); in contains_proc()
173 SkIRect r = iter.rect(); in test_intersects_iter()
204 static void rand_rect(SkIRect* rect, SkRandom& rand) { in rand_rect()
212 static bool test_rects(const SkIRect rect[], int count) { in test_rects()
234 const SkIRect r2[] = { in DEF_TEST()
240 const SkIRect rects[] = { in DEF_TEST()
253 SkIRect rect[N]; in DEF_TEST()