Home | History | Annotate | Download | only in core

Lines Matching refs:Op

18 static MutateResult mutate_conservative_op(SkRegion::Op* op, bool inverseFilled) {
20 switch (*op) {
33 *op = SkRegion::kReplace_Op;
39 switch (*op) {
49 // To reverse, we swap in the bounds with a replace op.
51 *op = SkRegion::kReplace_Op;
56 *op = SkRegion::kUnion_Op;
60 SkASSERT(false); // unknown op
65 const SkIRect& devBounds, SkRegion::Op op, bool doAA) {
67 switch (mutate_conservative_op(&op, false)) {
79 this->opIRect(ir, op);
83 const SkIRect& devBounds, SkRegion::Op op, bool doAA) {
84 this->opRect(rrect.getBounds(), ctm, devBounds, op, doAA);
88 SkRegion::Op op, bool doAA) {
90 switch (mutate_conservative_op(&op, path.isInverseFillType())) {
103 return this->opIRect(ir, op);
106 void SkConservativeClip::opRegion(const SkRegion& rgn, SkRegion::Op op) {
107 this->opIRect(rgn.getBounds(), op);
110 void SkConservativeClip::opIRect(const SkIRect& devRect, SkRegion::Op op) {
111 if (SkRegion::kIntersect_Op == op) {
119 // Perhaps we should inline the op-logic directly to never create the rgn...
121 result.op(SkRegion(fBounds), SkRegion(devRect), op);
123 this->applyClipRestriction(op, &fBounds);
215 SkRegion::Op op;
217 op = SkRegion::kDifference_Op;
219 op = SkRegion::kIntersect_Op;
222 fBW.op(r.roundOut(), op);
244 bool SkRasterClip::op(const SkRRect& rrect, const SkMatrix& matrix, const SkIRect& devBounds,
245 SkRegion::Op op, bool doAA) {
247 this->applyClipRestriction(op, &bounds);
252 return this->op(path, matrix, bounds, op, doAA);
255 bool SkRasterClip::op(const SkPath& path, const SkMatrix& matrix, const SkIRect& devBounds,
256 SkRegion::Op op, bool doAA) {
259 this->applyClipRestriction(op, &bounds);
272 if (SkRegion::kIntersect_Op == op) {
285 return this->op(clip, op);
290 if (SkRegion::kReplace_Op == op) {
295 return this->op(clip, op);
306 bool SkRasterClip::op(const SkIRect& rect, SkRegion::Op op) {
309 fIsBW ? fBW.op(rect, op) : fAA.op(rect, op);
313 bool SkRasterClip::op(const SkRegion& rgn, SkRegion::Op op) {
317 (void)fBW.op(rgn, op);
321 (void)fAA.op(tmp, op);
326 bool SkRasterClip::op(const SkRasterClip& clip, SkRegion::Op op) {
331 (void)fBW.op(clip.fBW, op);
345 (void)fAA.op(*other, op);
363 bool SkRasterClip::op(const SkRect& localRect, const SkMatrix& matrix, const SkIRect& devBounds,
364 SkRegion::Op op, bool doAA) {
373 return this->op(path, matrix, devBounds, op, doAA);
390 this->applyClipRestriction(op, &ir);
391 (void)fBW.op(ir, op);
396 this->applyClipRestriction(op, &devRect);
397 (void)fAA.op(devRect, op, doAA);