Home | History | Annotate | Download | only in tests

Lines Matching full:rect

13 static void Union(SkRegion* rgn, const SkIRect& rect) {
14 rgn->op(rect, SkRegion::kUnion_Op);
17 #define TEST_NO_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, !rgn.intersects(rect))
18 #define TEST_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, rgn.intersects(rect))
19 #define TEST_NO_CONTAINS(rgn, rect) REPORTER_ASSERT(reporter, !rgn.contains(rect))
64 // These test SkRegion::contains(Rect) and SkRegion::contains(Region)
144 SkIRect r = iter.rect();
159 // test rect
173 SkIRect r = iter.rect();
204 static void rand_rect(SkIRect* rect, SkRandom& rand) {
207 rect->set(rand.nextU() >> shift, rand.nextU() >> shift,
209 rect->sort();
212 static bool test_rects(const SkIRect rect[], int count) {
216 rgn0.op(rect[i], SkRegion::kUnion_Op);
218 rgn1.setRects(rect, count);
224 rect[i].fLeft, rect[i].fTop,
225 rect[i].fRight, rect[i].fBottom);
253 SkIRect rect[N];
255 rand_rect(&rect[j], rand);
257 REPORTER_ASSERT(reporter, test_rects(rect, N));