Index: src/utils/SkDeferredCanvas.cpp |
diff --git a/src/utils/SkDeferredCanvas.cpp b/src/utils/SkDeferredCanvas.cpp |
index d2f95d9317cf5ef43dbafae1c99d47347d332d98..c8af14c08ad8f43466894616aff69663015c8ae0 100644 |
--- a/src/utils/SkDeferredCanvas.cpp |
+++ b/src/utils/SkDeferredCanvas.cpp |
@@ -99,7 +99,7 @@ void SkDeferredCanvas::emit(const Rec& rec) { |
case kClipRect_Type: |
fCanvas->clipRect(rec.fData.fBounds); |
this->INHERITED::onClipRect(rec.fData.fBounds, |
- SkRegion::kIntersect_Op, kHard_ClipEdgeStyle); |
+ kIntersect_Op, kHard_ClipEdgeStyle); |
break; |
case kTrans_Type: |
case kScaleTrans_Type: { |
@@ -272,8 +272,8 @@ void SkDeferredCanvas::didSetMatrix(const SkMatrix& matrix) { |
this->INHERITED::didSetMatrix(matrix); |
} |
-void SkDeferredCanvas::onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle) { |
- if (SkRegion::kIntersect_Op == op) { |
+void SkDeferredCanvas::onClipRect(const SkRect& rect, ClipOp op, ClipEdgeStyle edgeStyle) { |
+ if (kIntersect_Op == op) { |
this->push_cliprect(rect); |
} else { |
this->flush_all(); |
@@ -282,19 +282,19 @@ void SkDeferredCanvas::onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeS |
} |
} |
-void SkDeferredCanvas::onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeStyle) { |
+void SkDeferredCanvas::onClipRRect(const SkRRect& rrect, ClipOp op, ClipEdgeStyle edgeStyle) { |
this->flush_all(); |
fCanvas->clipRRect(rrect, op, kSoft_ClipEdgeStyle == edgeStyle); |
this->INHERITED::onClipRRect(rrect, op, edgeStyle); |
} |
-void SkDeferredCanvas::onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edgeStyle) { |
+void SkDeferredCanvas::onClipPath(const SkPath& path, ClipOp op, ClipEdgeStyle edgeStyle) { |
this->flush_all(); |
fCanvas->clipPath(path, op, kSoft_ClipEdgeStyle == edgeStyle); |
this->INHERITED::onClipPath(path, op, edgeStyle); |
} |
-void SkDeferredCanvas::onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) { |
+void SkDeferredCanvas::onClipRegion(const SkRegion& deviceRgn, ClipOp op) { |
this->flush_all(); |
fCanvas->clipRegion(deviceRgn, op); |
this->INHERITED::onClipRegion(deviceRgn, op); |