Lines Matching refs:rect
31 static void setRawBounds(const SkDQuad& quad, SkDRect* rect) {
32 rect->set(quad[0]);
33 rect->add(quad[1]);
34 rect->add(quad[2]);
37 static void setRawBounds(const SkDCubic& cubic, SkDRect* rect) {
38 rect->set(cubic[0]);
39 rect->add(cubic[1]);
40 rect->add(cubic[2]);
41 rect->add(cubic[3]);
46 SkDRect rect, rect2;
50 setRawBounds(quad, &rect);
52 REPORTER_ASSERT(reporter, rect.intersects(rect2));
55 REPORTER_ASSERT(reporter, rect.contains(leftTop));
57 REPORTER_ASSERT(reporter, rect.contains(rightBottom));
62 setRawBounds(cubic, &rect);
64 REPORTER_ASSERT(reporter, rect.intersects(rect2));
67 REPORTER_ASSERT(reporter, rect.contains(leftTop));
69 REPORTER_ASSERT(reporter, rect.contains(rightBottom));