preserve inverseness when stroking

git-svn-id: http://skia.googlecode.com/svn/trunk@2916 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2011-12-21 15:53:13 +00:00
parent 419f43348a
commit bb47232dce

View File

@ -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,