aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/svg/model/SkSVGPoly.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'experimental/svg/model/SkSVGPoly.cpp')
-rw-r--r--experimental/svg/model/SkSVGPoly.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/experimental/svg/model/SkSVGPoly.cpp b/experimental/svg/model/SkSVGPoly.cpp
index bcc716f362..826ca2457e 100644
--- a/experimental/svg/model/SkSVGPoly.cpp
+++ b/experimental/svg/model/SkSVGPoly.cpp
@@ -6,6 +6,7 @@
*/
#include "SkCanvas.h"
+#include "SkTLazy.h"
#include "SkSVGRenderContext.h"
#include "SkSVGPoly.h"
#include "SkSVGValue.h"
@@ -31,6 +32,9 @@ void SkSVGPoly::onSetAttribute(SkSVGAttribute attr, const SkSVGValue& v) {
}
}
-void SkSVGPoly::onDraw(SkCanvas* canvas, const SkSVGLengthContext&, const SkPaint& paint) const {
+void SkSVGPoly::onDraw(SkCanvas* canvas, const SkSVGLengthContext&, const SkPaint& paint,
+ SkPath::FillType fillType) const {
+ // the passed fillType follows inheritance rules and needs to be applied at draw time.
+ fPath.setFillType(fillType);
canvas->drawPath(fPath, paint);
}