Index: src/svg/SkSVGDevice.cpp |
diff --git a/src/svg/SkSVGDevice.cpp b/src/svg/SkSVGDevice.cpp |
index 3ba721ee3902ae4621ee77329f7b91d6111aacf7..d4d18da83faac8be97d0aeb91d03d2141722a3bf 100644 |
--- a/src/svg/SkSVGDevice.cpp |
+++ b/src/svg/SkSVGDevice.cpp |
@@ -652,6 +652,11 @@ void SkSVGDevice::drawPath(const SkDraw& draw, const SkPath& path, const SkPaint |
const SkMatrix* prePathMatrix, bool pathIsMutable) { |
AutoElement elem("path", fWriter, fResourceBucket, draw, paint); |
elem.addPathAttributes(path); |
+ |
+ // TODO: inverse fill types? |
+ if (path.getFillType() == SkPath::kEvenOdd_FillType) { |
+ elem.addAttribute("fill-rule", "evenodd"); |
+ } |
} |
void SkSVGDevice::drawBitmapCommon(const SkDraw& draw, const SkBitmap& bm, |