At least on Windows, this fixes a lot of the horrible banded blurs. AFAICT there is no good reason to quantize the device space rect passed to the GrRectBlurEffect.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=
2262263002
Review-Url: https://codereview.chromium.org/
2262263002
SkRect rect;
if (path.isRect(&rect)) {
- int pad = SkScalarCeilToInt(6*xformedSigma)/2;
- rect.outset(SkIntToScalar(pad), SkIntToScalar(pad));
+ SkScalar pad = 3.0f * xformedSigma;
+ rect.outset(pad, pad);
fp = GrRectBlurEffect::Make(texProvider, rect, xformedSigma);
} else if (path.isOval(&rect) && SkScalarNearlyEqual(rect.width(), rect.height())) {