path ops -- make combined clips soft if one is soft

Review URL: https://codereview.chromium.org/14786018

git-svn-id: http://skia.googlecode.com/svn/trunk@9047 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
caryclark@google.com 2013-05-07 19:48:31 +00:00
parent 7f4ad5a30f
commit 96fd3440fa

View File

@ -1268,6 +1268,10 @@ bool SkCanvas::clipPath(const SkPath& path, SkRegion::Op op, bool doAA) {
} else {
Op(devPath, operand, (SkPathOp) elementOp, &devPath);
}
// if the prev and curr clips disagree about aa -vs- not, favor the aa request.
// perhaps we need an API change to avoid this sort of mixed-signals about
// clipping.
doAA |= element->isAA();
}
op = SkRegion::kReplace_Op;
}