aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-12-10 15:50:37 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-12-10 15:50:37 +0000
commit907ef6c7024c7aa04cb8822b0d06a458e551bc89 (patch)
treeed299c6f21f38117fa56f0a273b196cd305e1122 /src/core
parent7c9d539d8843ad75a1c249633bbc8bb331f5035e (diff)
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
Diffstat (limited to 'src/core')
-rw-r--r--src/core/SkPictureRecord.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}