Lines Matching refs:rgn
140 static void paint_rgn(SkCanvas* canvas, const SkRegion& rgn, in paint_rgn() argument
143 scale_rgn(&scaled, rgn, 0.5f); in paint_rgn()
145 SkRegion::Iterator iter(rgn); in paint_rgn()
165 void build_base_rgn(SkRegion* rgn) { in build_base_rgn() argument
166 rgn->setRect(fBase); in build_base_rgn()
169 rgn->op(r, SkRegion::kUnion_Op); in build_base_rgn()
172 void build_rgn(SkRegion* rgn, SkRegion::Op op) { in build_rgn() argument
173 build_base_rgn(rgn); in build_rgn()
174 rgn->op(fRect, op); in build_rgn()
191 SkRegion rgn; in drawPredicates() local
192 build_base_rgn(&rgn); in drawPredicates()
194 drawstr(canvas, "Intersects", pts[0], rgn.intersects(fRect)); in drawPredicates()
195 drawstr(canvas, "Contains", pts[1], rgn.contains(fRect)); in drawPredicates()
206 SkRegion rgn; in drawOrig() local
207 build_base_rgn(&rgn); in drawOrig()
208 paint_rgn(canvas, rgn, paint); in drawOrig()
215 SkRegion rgn; in drawRgnOped() local
217 this->build_rgn(&rgn, op); in drawRgnOped()
220 SkRegion tmp, tmp2(rgn); in drawRgnOped()
239 rgn.translate(20, 30, &tmp); in drawRgnOped()
240 SkASSERT(rgn.isEmpty() || tmp != rgn); in drawRgnOped()
242 SkASSERT(tmp == rgn); in drawRgnOped()
249 paint_rgn(canvas, rgn, paint); in drawRgnOped()
253 paint_rgn(canvas, rgn, paint); in drawRgnOped()
257 SkRegion rgn; in drawPathOped() local
260 this->build_rgn(&rgn, op); in drawPathOped()
261 rgn.getBoundaryPath(&path); in drawPathOped()