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

Issue 1133523006: Don't fail SkMergeImageFilter if one of the inputs are empty (Closed)

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

Description

Don't fail SkMergeImageFilter if one of the inputs are empty If one of the inputs to a SkMergeImageFilter was clipped away or otherwise caused the filterImage(...) invocation for it to return false, the entire effect would be "failed" and return false -- regardless of if it had produced a result or not. Instead of returning false directly if filterImage(...) for a source returned false, consider all the inputs, and then only return false if all of them do. BUG=chromium:489046 Committed: https://skia.googlesource.com/skia/+/d8b57717793f069db2ccd7c8174d0822bd7de6e1

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -1 line) Patch
M src/effects/SkMergeImageFilter.cpp View 3 chunks +6 lines, -1 line 0 comments Download
M tests/ImageFilterTest.cpp View 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (5 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/1133523006/1
5 years, 7 months ago (2015-05-19 11:52:45 UTC) #2
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
5 years, 7 months ago (2015-05-19 11:52:46 UTC) #3
fs
5 years, 7 months ago (2015-05-19 11:59:37 UTC) #6
reed1
code seems logical, but Stephen should comment on the feature-correctness of the new behavior.
5 years, 7 months ago (2015-05-19 12:54:21 UTC) #7
Stephen White
LGTM
5 years, 7 months ago (2015-05-19 18:07:17 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1133523006/1
5 years, 7 months ago (2015-05-20 07:52:06 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://skia.googlesource.com/skia/+/d8b57717793f069db2ccd7c8174d0822bd7de6e1
5 years, 7 months ago (2015-05-20 07:52:24 UTC) #12
bungeman-skia
On 2015/05/20 07:52:24, I haz the power (commit-bot) wrote: > Committed patchset #1 (id:1) as ...
5 years, 7 months ago (2015-05-20 14:07:54 UTC) #13
Stephen White
On 2015/05/20 14:07:54, bungeman1 wrote: > On 2015/05/20 07:52:24, I haz the power (commit-bot) wrote: ...
5 years, 7 months ago (2015-05-20 14:24:25 UTC) #14
fs
On 2015/05/20 14:24:25, Stephen White wrote: > On 2015/05/20 14:07:54, bungeman1 wrote: > > On ...
5 years, 7 months ago (2015-05-20 14:29:18 UTC) #15
bungeman-skia
On 2015/05/20 14:29:18, fs wrote: > On 2015/05/20 14:24:25, Stephen White wrote: > > On ...
5 years, 7 months ago (2015-05-20 14:30:50 UTC) #16
fs
5 years, 7 months ago (2015-05-20 14:32:10 UTC) #17
Message was sent while issue was closed.
On 2015/05/20 14:30:50, bungeman1 wrote:
> On 2015/05/20 14:29:18, fs wrote:
> > On 2015/05/20 14:24:25, Stephen White wrote:
> > > On 2015/05/20 14:07:54, bungeman1 wrote:
> > > > On 2015/05/20 07:52:24, I haz the power (commit-bot) wrote:
> > > > > Committed patchset #1 (id:1) as
> > > > >
> > >
> https://skia.googlesource.com/skia/+/d8b57717793f069db2ccd7c8174d0822bd7de6e1
> > > > 
> > > > This is causing a layout test failure when rolling into Blink. See
> > > > 
> > > >
> > >
> >
>
https://storage.googleapis.com/chromium-layout-test-archives/linux_blink_rel/...
> > > > 
> > > > I'm currently looking, but is the new result for svg/filters/feMerge.svg
> > more
> > > > correct?
> > > 
> > > Yes, I think this is a fix for 
> > > https://code.google.com/p/chromium/issues/detail?id=473191
> > > 
> > > (GPU raster was correct in that case, since it has wider tiles, so the new
> CPU
> > > result should now match GPU).
> > 
> > Yes, that appears to be exactly the same as the bug I was looking at
> (489046)...
> > Will dupe or something.
> 
> Yes, I see now that this restores the expectations prior to
> https://codereview.chromium.org/769423008 .
> I will rebaseline this one for the Skia roll.

Great, thanks!

Powered by Google App Engine
This is Rietveld 408576698