Index: src/pdf/SkPDFDevice.cpp |
diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp |
index 9487dfd0a536589d074a74f24f9160f978660d82..ce036d111279dfef64969c788cc636b47f62e053 100644 |
--- a/src/pdf/SkPDFDevice.cpp |
+++ b/src/pdf/SkPDFDevice.cpp |
@@ -404,10 +404,8 @@ static bool get_clip_stack_path(const SkMatrix& transform, |
outClipPath->reset(); |
outClipPath->setFillType(SkPath::kInverseWinding_FillType); |
continue; |
- } else if (SkClipStack::Element::kRect_Type == clipEntry->getType()) { |
- entryPath.addRect(clipEntry->getRect()); |
- } else if (SkClipStack::Element::kPath_Type == clipEntry->getType()) { |
- entryPath = clipEntry->getPath(); |
+ } else { |
+ clipEntry->asPath(&entryPath); |
} |
entryPath.transform(transform); |