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

Issue 2114313002: Handle negative scale in SkDropShadowImageFilter::onFilterNodeBounds. (Closed)

Created:
4 years, 5 months ago by jbroman
Modified:
4 years, 5 months ago
CC:
reviews_skia.org
Base URL:
https://chromium.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Handle negative scale in SkDropShadowImageFilter::onFilterNodeBounds. Add unit tests for positive and negative scale factors for the two effects that apply a Gaussian blur like this: blur and drop-shadow. The last two assertions fail without the fix in SkDropShadowImageFilter. BUG=chromium:600821 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2114313002 Committed: https://skia.googlesource.com/skia/+/203a993c77ea146e0a4e7f1e0c079cc79fd09167

Patch Set 1 #

Patch Set 2 : I can has unit test. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -2 lines) Patch
M src/effects/SkDropShadowImageFilter.cpp View 1 chunk +3 lines, -2 lines 1 comment Download
M tests/ImageFilterTest.cpp View 1 1 chunk +58 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2114313002/20001
4 years, 5 months ago (2016-07-07 20:25:56 UTC) #5
jbroman
senorblanco is still OOO; you mind having a look?
4 years, 5 months ago (2016-07-07 20:26:10 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-07 20:52:08 UTC) #9
jbroman
ping
4 years, 5 months ago (2016-07-11 20:34:48 UTC) #10
f(malita)
lgtm
4 years, 5 months ago (2016-07-11 20:37:41 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2114313002/20001
4 years, 5 months ago (2016-07-11 20:43:33 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://skia.googlesource.com/skia/+/203a993c77ea146e0a4e7f1e0c079cc79fd09167
4 years, 5 months ago (2016-07-11 21:08:02 UTC) #15
Stephen White
https://codereview.chromium.org/2114313002/diff/20001/src/effects/SkDropShadowImageFilter.cpp File src/effects/SkDropShadowImageFilter.cpp (right): https://codereview.chromium.org/2114313002/diff/20001/src/effects/SkDropShadowImageFilter.cpp#newcode143 src/effects/SkDropShadowImageFilter.cpp:143: SkScalarCeilToInt(SkScalarAbs(SkScalarMul(sigma.x(), SkIntToScalar(3)))), There's probably a similar bug in SkDSIF::computeFastBounds().
4 years, 5 months ago (2016-07-12 16:25:24 UTC) #17
jbroman
4 years, 5 months ago (2016-07-12 16:45:10 UTC) #18
Message was sent while issue was closed.
On 2016/07/12 at 16:25:24, senorblanco wrote:
>
https://codereview.chromium.org/2114313002/diff/20001/src/effects/SkDropShado...
> File src/effects/SkDropShadowImageFilter.cpp (right):
> 
>
https://codereview.chromium.org/2114313002/diff/20001/src/effects/SkDropShado...
> src/effects/SkDropShadowImageFilter.cpp:143:
SkScalarCeilToInt(SkScalarAbs(SkScalarMul(sigma.x(), SkIntToScalar(3)))),
> There's probably a similar bug in SkDSIF::computeFastBounds().

computeFastBounds doesn't take a matrix, so I don't believe it's vulnerable to
this issue.

Powered by Google App Engine
This is Rietveld 408576698