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

Issue 1431593002: Make SkBlurImageFilter capable of cropping during blur (GPU path). (Closed)

Created:
5 years, 1 month ago by Stephen White
Modified:
5 years, 1 month ago
Reviewers:
bsalomon
CC:
reviews_skia.org
Base URL:
senorblanco-linux.mon:src/skia@blur-applyCropRect4-separate-loops
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Make SkBlurImageFilter capable of cropping during blur (GPU path). This is the GPU equivalent of https://codereview.chromium.org/1415653003/. It requires passing down the bounds of the crop rect (srcBounds), and turning the blur 3-patch optimization in convolve_gaussian() into a 5-patch: clear above and below srcBounds, blur with bounds checks inside left and right rects, blur without bounds checks in middle rect. Note: this change causes minor pixels diffs in the imagefilterscropexpand GM: for odd crop positions relative to the dstBounds, we are now correctly resampling at an even pixel boundary. BUG=skia:4502, skia:4526 Committed: https://skia.googlesource.com/skia/+/c57e0ded7d535523cfc6bf07c78e5f3479bb8c42 Committed: https://skia.googlesource.com/skia/+/07d56b13927a4cb8dc4db16c8a573dee120937f1

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Fixes: switch rects to dest-origin; add srcOffset; fix #

Patch Set 4 : Cleanup #

Patch Set 5 : Minor cleanup #

Patch Set 6 : Make srcBounds relative to src bitmap origin. #

Patch Set 7 : Change convolve_gaussian() src and dst bounds to be in src space #

Patch Set 8 : Re-upload with correct upstream #

Patch Set 9 : Restore the left/mid/right bounds optimization #

Patch Set 10 : Cleanup #

Patch Set 11 : Cleanup #

Patch Set 12 : speculative Win32 fixes #

Patch Set 13 : 100-col and comment fixes #

Patch Set 14 : Fix comment #

Patch Set 15 : Tweak comment #

Patch Set 16 : Fix uninitialized bounds in convolve_gaussian_2d() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -61 lines) Patch
M src/effects/SkBlurImageFilter.cpp View 1 2 3 4 5 7 1 chunk +10 lines, -8 lines 0 comments Download
M src/effects/SkBlurMaskFilter.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkGpuBlurUtils.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +5 lines, -5 lines 0 comments Download
M src/effects/SkGpuBlurUtils.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 13 chunks +85 lines, -47 lines 0 comments Download

Messages

Total messages: 29 (16 generated)
Stephen White
Brian: PTAL. Thanks!
5 years, 1 month ago (2015-11-05 17:57:11 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1431593002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1431593002/180001
5 years, 1 month ago (2015-11-05 18:04:07 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86-Debug-Trybot/builds/4068) Build-Win-MSVC-x86_64-Debug-Trybot on ...
5 years, 1 month ago (2015-11-05 18:06:18 UTC) #8
bsalomon
lgtm
5 years, 1 month ago (2015-11-05 21:25:03 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1431593002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1431593002/200001
5 years, 1 month ago (2015-11-05 22:18:12 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1431593002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1431593002/220001
5 years, 1 month ago (2015-11-05 22:22:43 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1431593002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1431593002/260001
5 years, 1 month ago (2015-11-05 22:38:00 UTC) #18
commit-bot: I haz the power
Committed patchset #15 (id:260001) as https://skia.googlesource.com/skia/+/c57e0ded7d535523cfc6bf07c78e5f3479bb8c42
5 years, 1 month ago (2015-11-05 22:48:47 UTC) #19
egdaniel
A revert of this CL (patchset #15 id:260001) has been created in https://codereview.chromium.org/1407133019/ by egdaniel@google.com. ...
5 years, 1 month ago (2015-11-09 18:04:05 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1431593002/270001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1431593002/270001
5 years, 1 month ago (2015-11-10 15:18:06 UTC) #23
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-10 15:30:22 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1431593002/270001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1431593002/270001
5 years, 1 month ago (2015-11-10 15:32:03 UTC) #28
commit-bot: I haz the power
5 years, 1 month ago (2015-11-10 15:32:43 UTC) #29
Message was sent while issue was closed.
Committed patchset #16 (id:270001) as
https://skia.googlesource.com/skia/+/07d56b13927a4cb8dc4db16c8a573dee120937f1

Powered by Google App Engine
This is Rietveld 408576698