Remove quantization of device-space dest rect for Ganesh analytic rrect blurs
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
This commit is contained in:
parent
6bf233176f
commit
3a0c3696f0
@ -1034,8 +1034,8 @@ bool SkBlurMaskFilterImpl::directFilterMaskGPU(GrTextureProvider* texProvider,
|
|||||||
|
|
||||||
SkRect rect;
|
SkRect rect;
|
||||||
if (path.isRect(&rect)) {
|
if (path.isRect(&rect)) {
|
||||||
int pad = SkScalarCeilToInt(6*xformedSigma)/2;
|
SkScalar pad = 3.0f * xformedSigma;
|
||||||
rect.outset(SkIntToScalar(pad), SkIntToScalar(pad));
|
rect.outset(pad, pad);
|
||||||
|
|
||||||
fp = GrRectBlurEffect::Make(texProvider, rect, xformedSigma);
|
fp = GrRectBlurEffect::Make(texProvider, rect, xformedSigma);
|
||||||
} else if (path.isOval(&rect) && SkScalarNearlyEqual(rect.width(), rect.height())) {
|
} else if (path.isOval(&rect) && SkScalarNearlyEqual(rect.width(), rect.height())) {
|
||||||
|
Loading…
Reference in New Issue
Block a user