don't convert clipPath -> clipRect if the path is inverse-filled

git-svn-id: http://skia.googlecode.com/svn/trunk@6734 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2012-12-10 15:50:37 +00:00
parent 7c9d539d88
commit 907ef6c702

View File

@ -360,7 +360,7 @@ bool SkPictureRecord::clipRect(const SkRect& rect, SkRegion::Op op, bool doAA) {
bool SkPictureRecord::clipPath(const SkPath& path, SkRegion::Op op, bool doAA) {
SkRect r;
if (path.isRect(&r)) {
if (!path.isInverseFillType() && path.isRect(&r)) {
return this->clipRect(r, op, doAA);
}