Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(668)

Issue 1529313003: Fix gaussian blur for small sigma. (Closed)

Created:
5 years ago by Stephen White
Modified:
5 years ago
Reviewers:
bsalomon
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Fix gaussian blur for small sigma. I broke this in https://skia.googlesource.com/skia/+/c57e0ded7d535523cfc6bf07c78e5f3479bb8c42. That change added support for cropping during blur, but did not do the correct thing for the small-sigma 2D matrix convolution optimization when blurring from small-to-large textures. The fix is pass the correct dstRect and srcOffset to convolve_gaussian_2d. I also changed convolve_gaussian_1d() and convolve_gaussian_2d() to take the original (non-negated) srcOffset, and to negate them when constructing the local matrix. Test: added a new (blur 0.3 0.3) column to imagefilterscropexpand, so that GM will have to be rebaselined. BUG=skia:4719, 569883 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1529313003 Committed: https://skia.googlesource.com/skia/+/c834ab178e56009875dee8d2265dba35cf6e1e55

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -11 lines) Patch
M gm/imagefilterscropexpand.cpp View 2 chunks +4 lines, -1 line 0 comments Download
M src/effects/SkGpuBlurUtils.cpp View 5 chunks +10 lines, -10 lines 0 comments Download

Messages

Total messages: 14 (8 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1529313003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1529313003/1
5 years ago (2015-12-17 01:47:19 UTC) #3
Stephen White
Brian: PTAL. Thanks!
5 years ago (2015-12-17 01:47:37 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-17 02:01:44 UTC) #9
bsalomon
lgtm
5 years ago (2015-12-17 16:00:18 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1529313003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1529313003/1
5 years ago (2015-12-17 16:09:40 UTC) #12
commit-bot: I haz the power
5 years ago (2015-12-17 16:10:20 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://skia.googlesource.com/skia/+/c834ab178e56009875dee8d2265dba35cf6e1e55

Powered by Google App Engine
This is Rietveld 408576698