Do not TryBlitFatAntiRect if isInverse

This fixes https://bugs.chromium.org/p/skia/issues/detail?id=7193

That bug only exists in our FDAA (forceDAA) bots (and maybe future
threaded backend) because we don't use DAA for convex paths otherwise.

Bug: skia:7193
Change-Id: I5e8660012655610417b40d964ee8d21b050a7820
Reviewed-on: https://skia-review.googlesource.com/65061
Reviewed-by: Cary Clark <caryclark@google.com>
Commit-Queue: Yuqian Li <liyuqian@google.com>
This commit is contained in:
Yuqian Li 2017-10-30 10:53:46 -04:00 committed by Skia Commit-Bot
parent 943ed7910f
commit 9be0f57422

View File

@ -329,7 +329,7 @@ void SkScan::DAAFillPath(const SkPath& path, const SkRegion& origClip, SkBlitter
// The overhead of even constructing SkCoverageDeltaList/Mask is too big.
// So TryBlitFatAntiRect and return if it's successful.
if (TryBlitFatAntiRect(blitter, path, clipBounds)) {
if (!isInverse && TryBlitFatAntiRect(blitter, path, clipBounds)) {
return;
}