Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2879)

Issue 5504117: Improve color filter premultiply accuracy (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 6 months ago by Stephen White
Modified:
12 years, 6 months ago
Reviewers:
bsalomon, reed1
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Improve the quality of color matrix filters by using SkPremultiplyARGBInline. This is closer to (but not exactly the same as) WebKit's implementation.

Patch Set 1 #

Patch Set 2 : use SkPremultiplyARGBInline instead #

Patch Set 3 : remove unnecessary conditional #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -7 lines) Patch
M src/effects/SkColorMatrixFilter.cpp View 1 2 1 chunk +1 line, -7 lines 0 comments Download

Messages

Total messages: 11
Stephen White
12 years, 6 months ago (2012-01-03 20:59:12 UTC) #1
reed1
Can we change the filter to just call SkPremultiplyARGB? It uses SkMulDiv255Round instead of oSkMulDiv255Ceil. ...
12 years, 6 months ago (2012-01-03 21:14:39 UTC) #2
Stephen White
On 2012/01/03 21:14:39, reed1 wrote: > Can we change the filter to just call SkPremultiplyARGB? ...
12 years, 6 months ago (2012-01-03 21:22:26 UTC) #3
bsalomon
On 2012/01/03 21:22:26, Stephen White wrote: > On 2012/01/03 21:14:39, reed1 wrote: > > Can ...
12 years, 6 months ago (2012-01-03 21:25:59 UTC) #4
Stephen White
On 2012/01/03 21:22:26, Stephen White wrote: > On 2012/01/03 21:14:39, reed1 wrote: > > Can ...
12 years, 6 months ago (2012-01-03 21:32:39 UTC) #5
reed1
I don't follow "avoid confusion until we switch to skia". I think skia should try ...
12 years, 6 months ago (2012-01-03 21:44:01 UTC) #6
Stephen White
On 2012/01/03 21:44:01, reed1 wrote: > I don't follow "avoid confusion until we switch to ...
12 years, 6 months ago (2012-01-03 21:50:59 UTC) #7
reed1
I'm fine with it unconditionally moving to SkPremultiply.
12 years, 6 months ago (2012-01-03 21:58:13 UTC) #8
Stephen White
On 2012/01/03 21:58:13, reed1 wrote: > I'm fine with it unconditionally moving to SkPremultiply. Done.
12 years, 6 months ago (2012-01-03 22:08:42 UTC) #9
reed1
I think we don't need the alpha!=255 check, since SkPremultplyInline also does that. Other than ...
12 years, 6 months ago (2012-01-03 22:18:25 UTC) #10
Stephen White
12 years, 6 months ago (2012-01-03 22:52:30 UTC) #11
On 2012/01/03 22:18:25, reed1 wrote:
> I think we don't need the alpha!=255 check, since SkPremultplyInline also does
> that. Other than that, lgtm.

Done, and landed as r2955.  Closing.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b