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;
52 setRawBounds(quad, &rect);
54 REPORTER_ASSERT(reporter, rect.intersects(rect2));
57 REPORTER_ASSERT(reporter, rect.contains(leftTop));
59 REPORTER_ASSERT(reporter, rect.contains(rightBottom));
66 setRawBounds(cubic, &rect);
68 REPORTER_ASSERT(reporter, rect.intersects(rect2));
71 REPORTER_ASSERT(reporter, rect.contains(leftTop));
73 REPORTER_ASSERT(reporter, rect.contains(rightBottom));