diff options
author | 2018-04-25 09:13:28 -0400 | |
---|---|---|
committer | 2018-04-25 15:01:07 +0000 | |
commit | 213ce18fc4937c2c523f723f6890788e8f15ed9c (patch) | |
tree | 50727cdcf33b6bba8a0f3faeab813e79bcc105eb /src/gpu | |
parent | 7c09a31344b9ebafc9d19b47c755df7985cdfb73 (diff) |
Refactor GaussianBlur
One of the bounding boxes in this method goes haywire in DDL mode. Hopefully, this refactoring will make it easier to determine which one it is.
Note that in this CL I tried to not change the existing behavior at all.
Bug: skia:7765
Change-Id: Ie71b4c338fd7ecf4f4b8b4cb5609ef3e686eaef5
Reviewed-on: https://skia-review.googlesource.com/122956
Reviewed-by: Greg Daniel <egdaniel@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/SkGpuDevice.cpp | 6 | ||||
-rw-r--r-- | src/gpu/effects/GrRRectBlurEffect.h | 1 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index 138d41f26a..7600a8f1c6 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp @@ -1052,7 +1052,7 @@ void SkGpuDevice::drawSprite(const SkBitmap& bitmap, void SkGpuDevice::drawSpecial(SkSpecialImage* special1, int left, int top, const SkPaint& paint, - SkImage* clipImage,const SkMatrix& clipMatrix) { + SkImage* clipImage, const SkMatrix& clipMatrix) { ASSERT_SINGLE_OWNER GR_CREATE_TRACE_MARKER_CONTEXT("SkGpuDevice", "drawSpecial", fContext.get()); @@ -1062,9 +1062,7 @@ void SkGpuDevice::drawSpecial(SkSpecialImage* special1, int left, int top, const sk_sp<SkSpecialImage> result; if (paint.getImageFilter()) { - result = this->filterTexture(special1, left, top, - &offset, - paint.getImageFilter()); + result = this->filterTexture(special1, left, top, &offset, paint.getImageFilter()); if (!result) { return; } diff --git a/src/gpu/effects/GrRRectBlurEffect.h b/src/gpu/effects/GrRRectBlurEffect.h index d1316e8a5b..04af1273f7 100644 --- a/src/gpu/effects/GrRRectBlurEffect.h +++ b/src/gpu/effects/GrRRectBlurEffect.h @@ -79,6 +79,7 @@ public: xformedSigma, xformedSigma, GrTextureDomain::kIgnore_Mode, + kPremul_SkAlphaType, SkBackingFit::kExact)); if (!rtc2) { return nullptr; |