From bb47232dce843aa2c5e49f86e1895d895826f476 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Wed, 21 Dec 2011 15:53:13 +0000 Subject: [PATCH] preserve inverseness when stroking git-svn-id: http://skia.googlecode.com/svn/trunk@2916 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/core/SkStroke.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core/SkStroke.cpp b/src/core/SkStroke.cpp index fa89ab1a70..03301c1fd5 100644 --- a/src/core/SkStroke.cpp +++ b/src/core/SkStroke.cpp @@ -641,6 +641,12 @@ void SkStroke::strokePath(const SkPath& src, SkPath* dst) const { } #endif } + + // our answer should preserve the inverseness of the src + if (src.isInverseFillType()) { + SkASSERT(!dst->isInverseFillType()); + dst->toggleInverseFillType(); + } } void SkStroke::strokeLine(const SkPoint& p0, const SkPoint& p1,