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

Issue 6489054: Optimize color matrix filters (Closed)

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

Description

When two or more color matrix image filters are connected together, and the non-leaf matrices do not require clamping, we can concatenate their matrices and apply them together. Committed: https://code.google.com/p/skia/source/detail?r=5931

Patch Set 1 #

Total comments: 3

Patch Set 2 : With another test, and using asAColorFilterImageFilter #

Total comments: 1

Patch Set 3 : changed to asColorFilter(); use new DAG accessors (getInput) #

Patch Set 4 : Remove spurious #include. #

Total comments: 6

Patch Set 5 : per review comments #

Total comments: 6

Patch Set 6 : fixes for review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -34 lines) Patch
A gm/colorfilterimagefilter.cpp View 1 2 3 4 1 chunk +134 lines, -0 lines 0 comments Download
M gyp/gmslides.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkImageFilter.h View 1 2 3 4 5 4 chunks +26 lines, -6 lines 0 comments Download
M include/effects/SkColorFilterImageFilter.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M src/core/SkImageFilter.cpp View 1 2 3 4 5 5 chunks +17 lines, -13 lines 0 comments Download
M src/effects/SkColorFilterImageFilter.cpp View 1 2 3 4 5 3 chunks +73 lines, -6 lines 0 comments Download
M src/effects/SkTestImageFilters.cpp View 1 2 3 4 5 7 chunks +13 lines, -9 lines 0 comments Download

Messages

Total messages: 20
Stephen White
12 years, 3 months ago (2012-08-29 21:01:50 UTC) #1
reed1
Thank you, I think this is more defensive at the API level. If we can ...
12 years, 3 months ago (2012-08-30 11:52:22 UTC) #2
schenney
What happens if a single color matrix requires clamping? Otherwise no complaints from me. https://codereview.appspot.com/6489054/diff/1/src/effects/SkColorFilterImageFilter.cpp ...
12 years, 3 months ago (2012-08-30 18:49:30 UTC) #3
Stephen White
> What happens if a single color matrix requires clamping? A single color matrix clamps ...
12 years, 2 months ago (2012-09-10 14:34:17 UTC) #4
Stephen White
On 2012/08/30 11:52:22, reed1 wrote: > Thank you, I think this is more defensive at ...
12 years, 2 months ago (2012-09-10 14:45:36 UTC) #5
Stephen White
With another test, and using asAColorFilterImageFilter
12 years, 2 months ago (2012-09-10 21:34:35 UTC) #6
Stephen White
On 2012/09/10 21:34:35, Stephen White wrote: > With another test, and using asAColorFilterImageFilter This version ...
12 years, 2 months ago (2012-09-10 21:35:26 UTC) #7
reed1
https://codereview.appspot.com/6489054/diff/10001/include/core/SkImageFilter.h File include/core/SkImageFilter.h (right): https://codereview.appspot.com/6489054/diff/10001/include/core/SkImageFilter.h#newcode111 include/core/SkImageFilter.h:111: SkColorFilter* asAColorFilter() seems a more general query. Can that ...
12 years, 2 months ago (2012-09-11 12:20:09 UTC) #8
Stephen White
On 2012/09/11 12:20:09, reed1 wrote: > https://codereview.appspot.com/6489054/diff/10001/include/core/SkImageFilter.h > File include/core/SkImageFilter.h (right): > > https://codereview.appspot.com/6489054/diff/10001/include/core/SkImageFilter.h#newcode111 > ...
12 years, 2 months ago (2012-09-11 14:32:33 UTC) #9
Stephen White
On 2012/09/11 14:32:33, Stephen White wrote: > On 2012/09/11 12:20:09, reed1 wrote: > > https://codereview.appspot.com/6489054/diff/10001/include/core/SkImageFilter.h ...
12 years, 2 months ago (2012-09-11 14:36:41 UTC) #10
reed1
I actually have been thinking and drawing pictures about the DAG problem, and I can ...
12 years, 2 months ago (2012-09-11 15:00:45 UTC) #11
Stephen White
On 2012/09/11 15:00:45, reed1 wrote: > I actually have been thinking and drawing pictures about ...
12 years, 2 months ago (2012-09-11 15:24:25 UTC) #12
Stephen White
This version uses the new DAG infrastructure (which unfortunately I had to make public within ...
12 years, 1 month ago (2012-10-11 17:12:04 UTC) #13
reed1
https://codereview.appspot.com/6489054/diff/19002/gm/colorfilterimagefilter.cpp File gm/colorfilterimagefilter.cpp (right): https://codereview.appspot.com/6489054/diff/19002/gm/colorfilterimagefilter.cpp#newcode62 gm/colorfilterimagefilter.cpp:62: void drawClippedRect(SkCanvas* canvas, const SkRect& r, const SkPaint& paint) ...
12 years, 1 month ago (2012-10-11 18:04:18 UTC) #14
Stephen White
Thanks for your review. https://codereview.appspot.com/6489054/diff/19002/gm/colorfilterimagefilter.cpp File gm/colorfilterimagefilter.cpp (right): https://codereview.appspot.com/6489054/diff/19002/gm/colorfilterimagefilter.cpp#newcode62 gm/colorfilterimagefilter.cpp:62: void drawClippedRect(SkCanvas* canvas, const SkRect& ...
12 years, 1 month ago (2012-10-12 15:30:49 UTC) #15
Stephen White
On 2012/10/12 15:30:49, Stephen White wrote: > Thanks for your review. > > https://codereview.appspot.com/6489054/diff/19002/gm/colorfilterimagefilter.cpp > ...
12 years, 1 month ago (2012-10-12 15:38:59 UTC) #16
Stephen White
On 2012/10/12 15:30:49, Stephen White wrote: > Thanks for your review. > > https://codereview.appspot.com/6489054/diff/19002/gm/colorfilterimagefilter.cpp > ...
12 years, 1 month ago (2012-10-12 15:39:00 UTC) #17
reed1
https://codereview.appspot.com/6489054/diff/13008/include/core/SkImageFilter.h File include/core/SkImageFilter.h (right): https://codereview.appspot.com/6489054/diff/13008/include/core/SkImageFilter.h#newcode127 include/core/SkImageFilter.h:127: */ trivial nit: often in skia we will make ...
12 years, 1 month ago (2012-10-12 16:17:10 UTC) #18
Stephen White
https://codereview.appspot.com/6489054/diff/13008/include/core/SkImageFilter.h File include/core/SkImageFilter.h (right): https://codereview.appspot.com/6489054/diff/13008/include/core/SkImageFilter.h#newcode127 include/core/SkImageFilter.h:127: */ On 2012/10/12 16:17:10, reed1 wrote: > trivial nit: ...
12 years, 1 month ago (2012-10-12 17:13:13 UTC) #19
reed1
12 years, 1 month ago (2012-10-12 17:19:30 UTC) #20
lgtm
Sign in to reply to this message.

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