Lines Matching refs:rect
31 static void setRawBounds(const SkDQuad& quad, SkDRect* rect) { in setRawBounds() argument
32 rect->set(quad[0]); in setRawBounds()
33 rect->add(quad[1]); in setRawBounds()
34 rect->add(quad[2]); in setRawBounds()
37 static void setRawBounds(const SkDCubic& cubic, SkDRect* rect) { in setRawBounds() argument
38 rect->set(cubic[0]); in setRawBounds()
39 rect->add(cubic[1]); in setRawBounds()
40 rect->add(cubic[2]); in setRawBounds()
41 rect->add(cubic[3]); in setRawBounds()
46 SkDRect rect, rect2; in DEF_TEST() local
52 setRawBounds(quad, &rect); in DEF_TEST()
54 REPORTER_ASSERT(reporter, rect.intersects(rect2)); in DEF_TEST()
57 REPORTER_ASSERT(reporter, rect.contains(leftTop)); in DEF_TEST()
59 REPORTER_ASSERT(reporter, rect.contains(rightBottom)); in DEF_TEST()
66 setRawBounds(cubic, &rect); in DEF_TEST()
68 REPORTER_ASSERT(reporter, rect.intersects(rect2)); in DEF_TEST()
71 REPORTER_ASSERT(reporter, rect.contains(leftTop)); in DEF_TEST()
73 REPORTER_ASSERT(reporter, rect.contains(rightBottom)); in DEF_TEST()