Index: src/xps/SkXPSDevice.cpp |
diff --git a/src/xps/SkXPSDevice.cpp b/src/xps/SkXPSDevice.cpp |
index 90fc68091cb0bc5283cbb0d720fee0baa54d5698..aef9dc8baf8659b751c966becb167a9ccd3adcda 100644 |
--- a/src/xps/SkXPSDevice.cpp |
+++ b/src/xps/SkXPSDevice.cpp |
@@ -1657,6 +1657,11 @@ void SkXPSDevice::drawPath(const SkDraw& d, |
SkMask* mask = nullptr; |
+ SkASSERT(SkPaint::kFill_Style == paint->getStyle() || |
+ (SkPaint::kStroke_Style == paint->getStyle() && 0 == paint->getStrokeWidth())); |
+ SkStrokeRec::InitStyle style = (SkPaint::kFill_Style == paint->getStyle()) |
+ ? SkStrokeRec::kFill_InitStyle |
+ : SkStrokeRec::kHairline_InitStyle; |
//[Pixel-path -> Mask] |
SkMask rasteredMask; |
if (SkDraw::DrawToMask( |
@@ -1666,7 +1671,7 @@ void SkXPSDevice::drawPath(const SkDraw& d, |
&matrix, |
&rasteredMask, |
SkMask::kComputeBoundsAndRenderImage_CreateMode, |
- paint->getStyle())) { |
+ style)) { |
SkAutoMaskFreeImage rasteredAmi(rasteredMask.fImage); |
mask = &rasteredMask; |