• Home
  • Raw
  • Download

Lines Matching refs:rgn

124 static void make_rgn(SkRegion* rgn, int left, int top, int right, int bottom,  in make_rgn()  argument
129 rgn->debugSetRuns(runs, count); in make_rgn()
130 SkASSERT(rgn->getBounds() == r); in make_rgn()
182 static void paint_rgn(SkCanvas* canvas, const SkRegion& rgn, in paint_rgn() argument
185 scale_rgn(&scaled, rgn, 0.5f); in paint_rgn()
187 SkRegion::Iterator iter(rgn); in paint_rgn()
207 void build_base_rgn(SkRegion* rgn) { in build_base_rgn() argument
208 rgn->setRect(fBase); in build_base_rgn()
211 rgn->op(r, SkRegion::kUnion_Op); in build_base_rgn()
214 void build_rgn(SkRegion* rgn, SkRegion::Op op) { in build_rgn() argument
215 build_base_rgn(rgn); in build_rgn()
216 rgn->op(fRect, op); in build_rgn()
240 SkRegion rgn; in drawPredicates() local
241 build_base_rgn(&rgn); in drawPredicates()
243 drawstr(canvas, "Intersects", pts[0], rgn.intersects(fRect)); in drawPredicates()
244 drawstr(canvas, "Contains", pts[1], rgn.contains(fRect)); in drawPredicates()
255 SkRegion rgn; in drawOrig() local
256 build_base_rgn(&rgn); in drawOrig()
257 paint_rgn(canvas, rgn, paint); in drawOrig()
264 SkRegion rgn; in drawRgnOped() local
266 this->build_rgn(&rgn, op); in drawRgnOped()
269 SkRegion tmp, tmp2(rgn); in drawRgnOped()
288 rgn.translate(20, 30, &tmp); in drawRgnOped()
289 SkASSERT(rgn.isEmpty() || tmp != rgn); in drawRgnOped()
291 SkASSERT(tmp == rgn); in drawRgnOped()
298 paint_rgn(canvas, rgn, paint); in drawRgnOped()
302 paint_rgn(canvas, rgn, paint); in drawRgnOped()
306 SkRegion rgn; in drawPathOped() local
309 this->build_rgn(&rgn, op); in drawPathOped()
310 rgn.getBoundaryPath(&path); in drawPathOped()