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

Issue 24157005: Moving 4 SkImageFilter derived classes from blink to skia (Closed)

Created:
7 years, 3 months ago by sugoi1
Modified:
7 years, 2 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Moving 4 SkImageFilter derived classes from blink to skia There were 4 classes in blink that derived from SkImageFilter : - TileImageFilter -> SkTileImageFilter - OffsetImageFilter -> SkOffsetImageFilter (already existed) - FloodImageFilter -> SkFloodImageFilter - CompositeImageFilter -> SkCompositeImageFilter All functions were copied as is, without modification (except for warnings fixes), except for the offset filter, which was merged into the existing SkOffsetImageFilter class, as a special case when a crop rect is provided. Since the names won't clash with the names in blink, it should be easy to integrate them in blink later and fix issues, if needed. BUG= Committed: http://code.google.com/p/skia/source/detail?r=11475

Patch Set 1 #

Patch Set 2 : Separate offset filter #

Patch Set 3 : Merged offset filters together #

Total comments: 5

Patch Set 4 : Updated copyright #

Patch Set 5 : Added new factory functions for Filter Effect image filters #

Patch Set 6 : Simple rename to SkCSSImageFilters #

Patch Set 7 : Merged new filters into existing ones #

Total comments: 10

Patch Set 8 : Added gm tests #

Total comments: 4

Patch Set 9 : Added missing SK_API #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M include/effects/SkTileImageFilter.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 36 (0 generated)
sugoi1
7 years, 3 months ago (2013-09-20 20:08:11 UTC) #1
sugoi1
I created separate filters from the skia filters for each case. We can rewrite them ...
7 years, 3 months ago (2013-09-23 15:50:52 UTC) #2
sugoi1
I merged both offset filters together. https://codereview.chromium.org/24157005/diff/9001/src/effects/SkOffsetImageFilter.cpp File src/effects/SkOffsetImageFilter.cpp (right): https://codereview.chromium.org/24157005/diff/9001/src/effects/SkOffsetImageFilter.cpp#newcode34 src/effects/SkOffsetImageFilter.cpp:34: SkIPoint srcOffset = ...
7 years, 3 months ago (2013-09-23 18:37:29 UTC) #3
Stephen White
LGTM https://codereview.chromium.org/24157005/diff/9001/include/effects/SkTileImageFilter.h File include/effects/SkTileImageFilter.h (right): https://codereview.chromium.org/24157005/diff/9001/include/effects/SkTileImageFilter.h#newcode14 include/effects/SkTileImageFilter.h:14: typedef SkImageFilter INHERITED; Nit: you could also de-inline ...
7 years, 3 months ago (2013-09-24 01:13:19 UTC) #4
sugoi1
https://codereview.chromium.org/24157005/diff/9001/include/effects/SkTileImageFilter.h File include/effects/SkTileImageFilter.h (right): https://codereview.chromium.org/24157005/diff/9001/include/effects/SkTileImageFilter.h#newcode14 include/effects/SkTileImageFilter.h:14: typedef SkImageFilter INHERITED; On 2013/09/24 01:13:19, Stephen White wrote: ...
7 years, 3 months ago (2013-09-24 11:39:49 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/sugoi@chromium.org/24157005/9001
7 years, 3 months ago (2013-09-24 11:40:05 UTC) #6
commit-bot: I haz the power
Presubmit check for 24157005-9001 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 3 months ago (2013-09-24 11:40:12 UTC) #7
sugoi1
Added bsalomon@ for approval (I will wait until the tree is green again, past M31, ...
7 years, 3 months ago (2013-09-24 11:41:45 UTC) #8
bsalomon
On 2013/09/24 11:41:45, sugoi1 wrote: > Added bsalomon@ for approval (I will wait until the ...
7 years, 3 months ago (2013-09-24 13:19:04 UTC) #9
sugoi1
On 2013/09/24 13:19:04, bsalomon wrote: > On 2013/09/24 11:41:45, sugoi1 wrote: > > Added bsalomon@ ...
7 years, 3 months ago (2013-09-24 14:00:27 UTC) #10
Stephen White
On 2013/09/24 14:00:27, sugoi1 wrote: > On 2013/09/24 13:19:04, bsalomon wrote: > > On 2013/09/24 ...
7 years, 3 months ago (2013-09-24 14:33:07 UTC) #11
bsalomon
On 2013/09/24 14:33:07, Stephen White wrote: > On 2013/09/24 14:00:27, sugoi1 wrote: > > On ...
7 years, 3 months ago (2013-09-24 14:46:22 UTC) #12
reed1
for scale and defensiveness (and possibly clarity), can we bucket a block of these CSS/SVG-specific ...
7 years, 3 months ago (2013-09-24 15:10:23 UTC) #13
reed1
Lets add some meaningful (i.e. one could write a test case from it) dox for ...
7 years, 3 months ago (2013-09-24 15:11:12 UTC) #14
sugoi1
On 2013/09/24 15:10:23, reed1 wrote: > for scale and defensiveness (and possibly clarity), can we ...
7 years, 3 months ago (2013-09-24 16:35:29 UTC) #15
reed1
indeed, anything in that vein gives us more protection/options, and can encourage us to add ...
7 years, 3 months ago (2013-09-24 17:11:25 UTC) #16
reed1
SkCSSImageFilters?
7 years, 3 months ago (2013-09-24 17:12:06 UTC) #17
reed1
do we already have unitests or gms (or benches) for these?
7 years, 3 months ago (2013-09-24 17:16:03 UTC) #18
Stephen White
As I mentioned to Alexis privately, I think Flood can be implemented with an SkColorImageFilter ...
7 years, 3 months ago (2013-09-24 17:21:09 UTC) #19
sugoi1
On 2013/09/24 17:16:03, reed1 wrote: > do we already have unitests or gms (or benches) ...
7 years, 3 months ago (2013-09-24 17:24:03 UTC) #20
sugoi1
On 2013/09/24 17:21:09, Stephen White wrote: > As I mentioned to Alexis privately, I think ...
7 years, 3 months ago (2013-09-24 17:30:07 UTC) #21
reed1
Would be really nice to have *some* sort of code exercising these when they land. ...
7 years, 3 months ago (2013-09-24 17:34:00 UTC) #22
Stephen White
On 2013/09/24 17:24:03, sugoi1 wrote: > On 2013/09/24 17:16:03, reed1 wrote: > > do we ...
7 years, 3 months ago (2013-09-24 17:34:13 UTC) #23
sugoi1
On 2013/09/24 17:34:13, Stephen White wrote: > On 2013/09/24 17:24:03, sugoi1 wrote: > > On ...
7 years, 3 months ago (2013-09-24 17:37:08 UTC) #24
sugoi1
Ok, so here's the current state : - Composite has been merged into SkXfermodeImageFilter. - ...
7 years, 3 months ago (2013-09-24 20:08:16 UTC) #25
reed1
sg, lets proceed w/ some tests. https://codereview.chromium.org/24157005/diff/26001/include/effects/SkTileImageFilter.h File include/effects/SkTileImageFilter.h (right): https://codereview.chromium.org/24157005/diff/26001/include/effects/SkTileImageFilter.h#newcode17 include/effects/SkTileImageFilter.h:17: SkTileImageFilter(const SkRect& srcRect, ...
7 years, 3 months ago (2013-09-24 20:11:56 UTC) #26
mtklein
Just nits, couldn't help myself. https://codereview.chromium.org/24157005/diff/26001/include/effects/SkOffsetImageFilter.h File include/effects/SkOffsetImageFilter.h (right): https://codereview.chromium.org/24157005/diff/26001/include/effects/SkOffsetImageFilter.h#newcode19 include/effects/SkOffsetImageFilter.h:19: const SkIRect* cropRect = ...
7 years, 3 months ago (2013-09-24 20:30:33 UTC) #27
Stephen White
https://codereview.chromium.org/24157005/diff/26001/include/effects/SkXfermodeImageFilter.h File include/effects/SkXfermodeImageFilter.h (right): https://codereview.chromium.org/24157005/diff/26001/include/effects/SkXfermodeImageFilter.h#newcode37 include/effects/SkXfermodeImageFilter.h:37: virtual bool canFilterImageGPU() const SK_OVERRIDE { return cropRect().isLargest(); } ...
7 years, 3 months ago (2013-09-24 23:14:13 UTC) #28
sugoi1
I added 2 new gms and modified 1 : - offsetimagefilter.cpp : 4 tests for ...
7 years, 2 months ago (2013-09-25 15:41:07 UTC) #29
Stephen White
https://codereview.chromium.org/24157005/diff/53001/gm/xfermodeimagefilter.cpp File gm/xfermodeimagefilter.cpp (right): https://codereview.chromium.org/24157005/diff/53001/gm/xfermodeimagefilter.cpp#newcode197 gm/xfermodeimagefilter.cpp:197: // Test cropping Do you need to expand the ...
7 years, 2 months ago (2013-09-25 18:11:50 UTC) #30
Stephen White
https://codereview.chromium.org/24157005/diff/53001/src/effects/SkOffsetImageFilter.cpp File src/effects/SkOffsetImageFilter.cpp (right): https://codereview.chromium.org/24157005/diff/53001/src/effects/SkOffsetImageFilter.cpp#newcode22 src/effects/SkOffsetImageFilter.cpp:22: if (cropRect().isLargest()) { On 2013/09/25 18:11:50, Stephen White wrote: ...
7 years, 2 months ago (2013-09-25 18:13:54 UTC) #31
sugoi1
https://codereview.chromium.org/24157005/diff/53001/gm/xfermodeimagefilter.cpp File gm/xfermodeimagefilter.cpp (right): https://codereview.chromium.org/24157005/diff/53001/gm/xfermodeimagefilter.cpp#newcode197 gm/xfermodeimagefilter.cpp:197: // Test cropping On 2013/09/25 18:11:50, Stephen White wrote: ...
7 years, 2 months ago (2013-09-25 18:21:26 UTC) #32
Stephen White
On 2013/09/25 18:21:26, sugoi1 wrote: > https://codereview.chromium.org/24157005/diff/53001/gm/xfermodeimagefilter.cpp > File gm/xfermodeimagefilter.cpp (right): > > https://codereview.chromium.org/24157005/diff/53001/gm/xfermodeimagefilter.cpp#newcode197 > ...
7 years, 2 months ago (2013-09-25 18:29:46 UTC) #33
reed1
lgtm
7 years, 2 months ago (2013-09-26 15:28:18 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/sugoi@chromium.org/24157005/53001
7 years, 2 months ago (2013-09-26 16:02:48 UTC) #35
commit-bot: I haz the power
7 years, 2 months ago (2013-09-26 16:09:37 UTC) #36
Message was sent while issue was closed.
Change committed as 11475

Powered by Google App Engine
This is Rietveld 408576698