Do not skip fractional y for SkAAClip
This should fix the following bugs: https://bugs.chromium.org/p/chromium/issues/detail?id=659883 https://bugs.chromium.org/p/chromium/issues/detail?id=659972 BUG=chromium:659883,chromium:659972 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2452393002 Review-Url: https://codereview.chromium.org/2452393002
This commit is contained in:
parent
a049ac46d4
commit
552889ea44
@ -952,8 +952,11 @@ static inline void aaa_walk_convex_edges(SkAnalyticEdge* prevHead, AdditiveBlitt
|
||||
}
|
||||
|
||||
SkFixed local_bot_fixed = SkMin32(leftE->fLowerY, riteE->fLowerY);
|
||||
// Skip the fractional y if edges are changing smoothly
|
||||
if (isSmoothEnough(leftE, riteE, currE, stop_y)) {
|
||||
// Skip the fractional y if edges are changing smoothly.
|
||||
// If forceRLE is true, we won't skip the fractional y because it
|
||||
// implies that SkAAClip is calling us and there are strict
|
||||
// assertions inside SkAAClip.
|
||||
if (isSmoothEnough(leftE, riteE, currE, stop_y) && !forceRLE) {
|
||||
local_bot_fixed = SkFixedCeilToFixed(local_bot_fixed);
|
||||
}
|
||||
local_bot_fixed = SkMin32(local_bot_fixed, SkIntToFixed(stop_y + 1));
|
||||
|
Loading…
Reference in New Issue
Block a user