Lines Matching refs:Op
17 static MutateResult mutate_conservative_op(SkRegion::Op* op, bool inverseFilled) {
19 switch (*op) {
32 *op = SkRegion::kReplace_Op;
38 switch (*op) {
48 // To reverse, we swap in the bounds with a replace op.
50 *op = SkRegion::kReplace_Op;
55 *op = SkRegion::kUnion_Op;
63 void SkConservativeClip::op(const SkRect& localRect, const SkMatrix& ctm, const SkIRect& devBounds,
64 SkRegion::Op op, bool doAA) {
66 switch (mutate_conservative_op(&op, false)) {
78 this->op(ir, op);
81 void SkConservativeClip::op(const SkRRect& rrect, const SkMatrix& ctm, const SkIRect& devBounds,
82 SkRegion::Op op, bool doAA) {
83 this->op(rrect.getBounds(), ctm, devBounds, op, doAA);
86 void SkConservativeClip::op(const SkPath& path, const SkMatrix& ctm, const SkIRect& devBounds,
87 SkRegion::Op op, bool doAA) {
89 switch (mutate_conservative_op(&op, path.isInverseFillType())) {
102 return this->op(ir, op);
105 void SkConservativeClip::op(const SkRegion& rgn, SkRegion::Op op) {
106 this->op(rgn.getBounds(), op);
109 void SkConservativeClip::op(const SkIRect& devRect, SkRegion::Op op) {
110 if (SkRegion::kIntersect_Op == op) {
118 // Perhaps we should inline the op-logic directly to never create the rgn...
120 result.op(SkRegion(fBounds), SkRegion(devRect), op);
122 this->applyClipRestriction(op, &fBounds);
214 SkRegion::Op op;
216 op = SkRegion::kDifference_Op;
218 op = SkRegion::kIntersect_Op;
221 fBW.op(r.roundOut(), op);
243 bool SkRasterClip::op(const SkRRect& rrect, const SkMatrix& matrix, const SkIRect& devBounds,
244 SkRegion::Op op, bool doAA) {
246 this->applyClipRestriction(op, &bounds);
251 return this->op(path, matrix, bounds, op, doAA);
254 bool SkRasterClip::op(const SkPath& path, const SkMatrix& matrix, const SkIRect& devBounds,
255 SkRegion::Op op, bool doAA) {
258 this->applyClipRestriction(op, &bounds);
271 if (SkRegion::kIntersect_Op == op) {
284 return this->op(clip, op);
289 if (SkRegion::kReplace_Op == op) {
294 return this->op(clip, op);
305 bool SkRasterClip::op(const SkIRect& rect, SkRegion::Op op) {
308 fIsBW ? fBW.op(rect, op) : fAA.op(rect, op);
312 bool SkRasterClip::op(const SkRegion& rgn, SkRegion::Op op) {
316 (void)fBW.op(rgn, op);
320 (void)fAA.op(tmp, op);
325 bool SkRasterClip::op(const SkRasterClip& clip, SkRegion::Op op) {
330 (void)fBW.op(clip.fBW, op);
344 (void)fAA.op(*other, op);
362 bool SkRasterClip::op(const SkRect& localRect, const SkMatrix& matrix, const SkIRect& devBounds,
363 SkRegion::Op op, bool doAA) {
372 return this->op(path, matrix, devBounds, op, doAA);
389 this->applyClipRestriction(op, &ir);
390 (void)fBW.op(ir, op);
395 this->applyClipRestriction(op, &devRect);
396 (void)fAA.op(devRect, op, doAA);