From: reed@google.com Date: Mon, 10 Dec 2012 15:50:37 +0000 (+0000) Subject: don't convert clipPath -> clipRect if the path is inverse-filled X-Git-Tag: submit/tizen/20180928.044319~14100 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=907ef6c7024c7aa04cb8822b0d06a458e551bc89;p=platform%2Fupstream%2FlibSkiaSharp.git 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 --- diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp index b62b5b94da..3c4df53b1e 100644 --- a/src/core/SkPictureRecord.cpp +++ b/src/core/SkPictureRecord.cpp @@ -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); }