Index: src/pdf/SkPDFDevice.cpp |
diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp |
index ce036d111279dfef64969c788cc636b47f62e053..a7ef08d21d56c22c8f20490896b1f6b9ac35b3de 100644 |
--- a/src/pdf/SkPDFDevice.cpp |
+++ b/src/pdf/SkPDFDevice.cpp |
@@ -503,14 +503,13 @@ void GraphicStackState::updateClip(const SkClipStack& clipStack, |
emit_clip(NULL, &translatedClip, fContentStream); |
break; |
} |
- case SkClipStack::Element::kPath_Type: { |
+ default: { |
SkPath translatedPath; |
- clipEntry->getPath().transform(transform, &translatedPath); |
+ clipEntry->asPath(&translatedPath); |
+ translatedPath.transform(transform, &translatedPath); |
emit_clip(&translatedPath, NULL, fContentStream); |
break; |
} |
- default: |
- SkASSERT(false); |
} |
} |
} |