Bug 112828

Summary: [skia] feConvolveMatrix should use accelerated path
Product: WebKit Reporter: Stephen White <senorblanco>
Component: SVGAssignee: Stephen White <senorblanco>
Status: RESOLVED FIXED    
Severity: Normal CC: dino, jamesr, junov, rniwa, webkit.review.bot, zimmermann
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 112906    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Fix copyright date
none
Patch
none
Patch for landing
none
Patch for landing
none
Patch for landing none

Description Stephen White 2013-03-20 12:44:41 PDT
[skia] feConvolveMatrix should use accelerated path
Comment 1 Stephen White 2013-03-20 12:58:54 PDT
Created attachment 194099 [details]
Patch
Comment 2 Stephen White 2013-03-20 13:01:50 PDT
Created attachment 194100 [details]
Fix copyright date
Comment 3 Stephen White 2013-03-20 13:28:10 PDT
Created attachment 194105 [details]
Patch
Comment 4 Stephen White 2013-03-20 15:16:22 PDT
James, would you mind taking a look?
Comment 5 James Robinson 2013-03-20 21:27:29 PDT
Comment on attachment 194105 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=194105&action=review

Hm, ok. I don't think I understand this very well but seems reasonable.

> Source/WebCore/platform/graphics/filters/skia/FEConvolveMatrixSkia.cpp:43
> +    case WebCore::EDGEMODE_UNKNOWN:
> +    case WebCore::EDGEMODE_DUPLICATE:
> +    default:
> +        return SkMatrixConvolutionImageFilter::kClamp_TileMode;

this looks weird. why not do

switch () {
case ..._WRAP:
   return ...;
case ..._NONE:
   return ...;
default:
   return ....;
}

?
Comment 6 Stephen White 2013-03-21 04:50:46 PDT
Comment on attachment 194105 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=194105&action=review

>> Source/WebCore/platform/graphics/filters/skia/FEConvolveMatrixSkia.cpp:43
>> +        return SkMatrixConvolutionImageFilter::kClamp_TileMode;
> 
> this looks weird. why not do
> 
> switch () {
> case ..._WRAP:
>    return ...;
> case ..._NONE:
>    return ...;
> default:
>    return ....;
> }
> 
> ?

I'd prefer to call out the DUPLICATE edge mode explicitly, since this one is the one that really maps to Clamp.  I'll remove the default case entirely, since it shouldn't be necessary. UNKNOWN is a weird one, that's not in the spec (perhaps just there as a placeholder for parsing?) but unfortunately I still seed to do something with it.
Comment 7 Stephen White 2013-03-21 04:54:24 PDT
Created attachment 194228 [details]
Patch for landing
Comment 8 WebKit Review Bot 2013-03-21 05:18:58 PDT
Comment on attachment 194228 [details]
Patch for landing

Clearing flags on attachment: 194228

Committed r146454: <http://trac.webkit.org/changeset/146454>
Comment 9 WebKit Review Bot 2013-03-21 05:19:02 PDT
All reviewed patches have been landed.  Closing bug.
Comment 10 WebKit Review Bot 2013-03-21 05:53:30 PDT
Re-opened since this is blocked by bug 112906
Comment 11 Stephen White 2013-03-21 06:32:58 PDT
Created attachment 194245 [details]
Patch for landing
Comment 12 WebKit Review Bot 2013-03-21 06:35:49 PDT
Comment on attachment 194245 [details]
Patch for landing

Rejecting attachment 194245 [details] from commit-queue.

Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=webkit-commit-queue.appspot.com', '--bot-id=gce-cq-03', 'validate-changelog', '--non-interactive', 194245, '--port=chromium-xvfb']" exit_code: 1 cwd: /mnt/git/webkit-commit-queue

/mnt/git/webkit-commit-queue/LayoutTests/ChangeLog neither lists a valid reviewer nor contains the string "Unreviewed" or "Rubber stamp" (case insensitive).

Full output: http://webkit-commit-queue.appspot.com/results/17292022
Comment 13 Stephen White 2013-03-21 06:37:15 PDT
Created attachment 194246 [details]
Patch for landing
Comment 14 WebKit Review Bot 2013-03-21 08:00:43 PDT
Comment on attachment 194246 [details]
Patch for landing

Clearing flags on attachment: 194246

Committed r146469: <http://trac.webkit.org/changeset/146469>
Comment 15 WebKit Review Bot 2013-03-21 08:00:47 PDT
All reviewed patches have been landed.  Closing bug.
Comment 16 Ryosuke Niwa 2013-03-21 11:45:59 PDT
Why was this patch landed without any new expected results? Please rebaseline results for at least one platform in the patch. Otherwise we have no way of knowing what the expected results is.
Comment 17 Ryosuke Niwa 2013-03-21 13:13:15 PDT
http://trac.webkit.org/changeset/146492 didn't refer to either this bug or http://trac.webkit.org/changeset/146469.