Lines Matching refs:SkRegion
127 static void scale_rgn(SkRegion* dst, const SkRegion& src, float scale) { in scale_rgn()
128 SkRegion tmp; in scale_rgn()
129 SkRegion::Iterator iter(src); in scale_rgn()
134 tmp.op(r, SkRegion::kUnion_Op); in scale_rgn()
139 static void paint_rgn(SkCanvas* canvas, const SkRegion& rgn, in paint_rgn()
141 SkRegion scaled; in paint_rgn()
144 SkRegion::Iterator iter(rgn); in paint_rgn()
164 void build_base_rgn(SkRegion* rgn) { in build_base_rgn()
168 rgn->op(r, SkRegion::kUnion_Op); in build_base_rgn()
171 void build_rgn(SkRegion* rgn, SkRegion::Op op) { in build_rgn()
196 SkRegion rgn; in drawPredicates()
211 SkRegion rgn; in drawOrig()
219 void drawRgnOped(SkCanvas* canvas, SkRegion::Op op, SkColor color) { in drawRgnOped()
220 SkRegion rgn; in drawRgnOped()
225 SkRegion tmp, tmp2(rgn); in drawRgnOped()
237 SkRegion tmp3; in drawRgnOped()
261 void drawPathOped(SkCanvas* canvas, SkRegion::Op op, SkColor color) { in drawPathOped()
262 SkRegion rgn; in drawPathOped()
299 SkRegion::Op fOp; in onDrawContent()
301 { SK_ColorBLACK, "Difference", SkRegion::kDifference_Op }, in onDrawContent()
302 { SK_ColorRED, "Intersect", SkRegion::kIntersect_Op }, in onDrawContent()
303 { 0xFF008800, "Union", SkRegion::kUnion_Op }, in onDrawContent()
304 { SK_ColorBLUE, "XOR", SkRegion::kXOR_Op } in onDrawContent()
313 this->drawRgnOped(canvas, SkRegion::kUnion_Op, SK_ColorBLACK); in onDrawContent()