Index: src/core/SkPictureRecord.cpp |
diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp |
index cae8420e95ac546d3c770457939178c7a1ca9926..b17169183a1a71bd41fde3e8c22ba352f78d3f68 100644 |
--- a/src/core/SkPictureRecord.cpp |
+++ b/src/core/SkPictureRecord.cpp |
@@ -788,7 +788,7 @@ |
void SkPictureRecord::onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeStyle) { |
this->recordClipRRect(rrect, op, kSoft_ClipEdgeStyle == edgeStyle); |
- this->INHERITED::onClipRRect(rrect, op, edgeStyle); |
+ this->updateClipConservativelyUsingBounds(rrect.getBounds(), op, false); |
} |
size_t SkPictureRecord::recordClipRRect(const SkRRect& rrect, SkRegion::Op op, bool doAA) { |
@@ -810,7 +810,9 @@ |
void SkPictureRecord::onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edgeStyle) { |
int pathID = this->addPathToHeap(path); |
this->recordClipPath(pathID, op, kSoft_ClipEdgeStyle == edgeStyle); |
- this->INHERITED::onClipPath(path, op, edgeStyle); |
+ |
+ this->updateClipConservativelyUsingBounds(path.getBounds(), op, |
+ path.isInverseFillType()); |
} |
size_t SkPictureRecord::recordClipPath(int pathID, SkRegion::Op op, bool doAA) { |