Index: src/pdf/SkPDFDevice.cpp |
diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp |
index b6500c1ed426af246a0d22b18b700355fad69655..9134d802ffc6de983c0fe022866aa1a5eedf09f5 100644 |
--- a/src/pdf/SkPDFDevice.cpp |
+++ b/src/pdf/SkPDFDevice.cpp |
@@ -1035,7 +1035,12 @@ void SkPDFDevice::drawPath(const SkDraw& d, |
if (!content.entry()) { |
return; |
} |
+ bool consumeDegeratePathSegments = |
+ paint.getStyle() == SkPaint::kFill_Style || |
+ (paint.getStrokeCap() != SkPaint::kRound_Cap && |
+ paint.getStrokeCap() != SkPaint::kSquare_Cap); |
SkPDFUtils::EmitPath(*pathPtr, paint.getStyle(), |
+ consumeDegeratePathSegments, |
&content.entry()->fContent); |
SkPDFUtils::PaintPath(paint.getStyle(), pathPtr->getFillType(), |
&content.entry()->fContent); |