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

Issue 646213004: Adding an option to render only the shadow in SkDropShadowImageFilter (Closed)

Created:
6 years, 2 months ago by sugoi1
Modified:
6 years, 2 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Adding an option to render only the shadow in SkDropShadowImageFilter This is basically how blink uses the filter. Currently, I can't use it for "ShadowOnly" mode with the filter at all, but instead of copying the code and risking to have the codepaths diverge, I'm simply going to add the option here. BUG=skia: Committed: https://skia.googlesource.com/skia/+/234f036b3e731e06e616c5291157d3bb4fbfdee2

Patch Set 1 #

Patch Set 2 : Added test case to gm #

Total comments: 3

Patch Set 3 : Removed default params and added helper Create function #

Patch Set 4 : Added dropshadowimagefilter to ignored-tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -29 lines) Patch
M expectations/gm/ignored-tests.txt View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M gm/dropshadowimagefilter.cpp View 1 2 2 chunks +15 lines, -7 lines 0 comments Download
M gm/imagefiltersbase.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M gm/imagefiltersclipped.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M gm/imagefilterscropexpand.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M gm/imagefiltersscaled.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M include/core/SkPicture.h View 1 chunk +2 lines, -1 line 0 comments Download
M include/effects/SkDropShadowImageFilter.h View 1 2 2 chunks +30 lines, -3 lines 0 comments Download
M samplecode/SampleFilterFuzz.cpp View 1 2 2 chunks +8 lines, -2 lines 0 comments Download
M src/core/SkReadBuffer.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/effects/SkDropShadowImageFilter.cpp View 7 chunks +23 lines, -6 lines 0 comments Download
M tests/ImageFilterTest.cpp View 1 2 3 chunks +7 lines, -3 lines 0 comments Download
M tests/RecordDrawTest.cpp View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 14 (4 generated)
sugoi1
No worries, I'll add a test for the new shadowOnly path and I'll add "dropshadowimagefilter" ...
6 years, 2 months ago (2014-10-23 18:01:48 UTC) #2
sugoi1
Added the new test case in the dropshadowimagefilter gm. https://codereview.chromium.org/646213004/diff/20001/gm/dropshadowimagefilter.cpp File gm/dropshadowimagefilter.cpp (right): https://codereview.chromium.org/646213004/diff/20001/gm/dropshadowimagefilter.cpp#newcode105 gm/dropshadowimagefilter.cpp:105: ...
6 years, 2 months ago (2014-10-23 18:28:26 UTC) #3
reed1
do we have a need for the draw-both version at all? https://codereview.chromium.org/646213004/diff/20001/include/effects/SkDropShadowImageFilter.h File include/effects/SkDropShadowImageFilter.h (right): ...
6 years, 2 months ago (2014-10-23 19:01:53 UTC) #5
Stephen White
https://codereview.chromium.org/646213004/diff/20001/include/effects/SkDropShadowImageFilter.h File include/effects/SkDropShadowImageFilter.h (right): https://codereview.chromium.org/646213004/diff/20001/include/effects/SkDropShadowImageFilter.h#newcode32 include/effects/SkDropShadowImageFilter.h:32: SkImageFilter* input = NULL, On 2014/10/23 19:01:53, reed1 wrote: ...
6 years, 2 months ago (2014-10-23 19:23:04 UTC) #7
reed1
On 2014/10/23 19:23:04, Stephen White wrote: > https://codereview.chromium.org/646213004/diff/20001/include/effects/SkDropShadowImageFilter.h > File include/effects/SkDropShadowImageFilter.h (right): > > https://codereview.chromium.org/646213004/diff/20001/include/effects/SkDropShadowImageFilter.h#newcode32 ...
6 years, 2 months ago (2014-10-23 19:30:11 UTC) #8
sugoi1
On 2014/10/23 19:30:11, reed1 wrote: > 3 default params? Lets create a variant function that ...
6 years, 2 months ago (2014-10-23 19:42:42 UTC) #9
reed1
api lgtm
6 years, 2 months ago (2014-10-23 19:44:13 UTC) #10
Stephen White
LGTM
6 years, 2 months ago (2014-10-23 19:53:21 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/646213004/60001
6 years, 2 months ago (2014-10-23 20:51:26 UTC) #13
commit-bot: I haz the power
6 years, 2 months ago (2014-10-23 20:59:57 UTC) #14
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as 234f036b3e731e06e616c5291157d3bb4fbfdee2

Powered by Google App Engine
This is Rietveld 408576698