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

Issue 6449075: Remove asAFoo() functions in SkImageFilter (Closed)

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

Description

Replace the asAFoo() functions in SkImageFilter with canFilterImageGPU() and onFilterImageGPU() virtuals. This allows each filter to implement its own GPU processing code, even for multi-pass filters. This is the first stage; the next step will be to move the actual processing code from GrContext into the filter subclasses.

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fix comments, remove unused var #

Total comments: 2

Patch Set 3 : Add SK_OVERRIDE where possible #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -60 lines) Patch
include/core/SkImageFilter.h View 1 1 chunk +11 lines, -18 lines 0 comments Download
include/effects/SkBlurImageFilter.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
include/effects/SkMorphologyImageFilter.h View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
src/core/SkPaint.cpp View 1 2 chunks +8 lines, -12 lines 0 comments Download
src/effects/SkBlurImageFilter.cpp View 1 2 chunks +6 lines, -0 lines 0 comments Download
src/effects/SkMorphologyImageFilter.cpp View 1 2 chunks +10 lines, -6 lines 0 comments Download
src/gpu/SkGpuDevice.cpp View 1 3 chunks +4 lines, -22 lines 0 comments Download

Messages

Total messages: 16
Stephen White
11 years, 11 months ago (2012-08-01 15:35:40 UTC) #1
bsalomon
I love the direction this is going in. http://codereview.appspot.com/6449075/diff/1/src/gpu/SkGpuDevice.cpp File src/gpu/SkGpuDevice.cpp (right): http://codereview.appspot.com/6449075/diff/1/src/gpu/SkGpuDevice.cpp#newcode1513 src/gpu/SkGpuDevice.cpp:1513: if ...
11 years, 11 months ago (2012-08-01 15:41:39 UTC) #2
TomH
On 2012/08/01 15:41:39, bsalomon wrote: > I love the direction this is going in. > ...
11 years, 11 months ago (2012-08-01 15:42:56 UTC) #3
Stephen White
On 2012/08/01 15:41:39, bsalomon wrote: > I love the direction this is going in. > ...
11 years, 11 months ago (2012-08-01 15:51:50 UTC) #4
bsalomon
On 2012/08/01 15:42:56, TomH wrote: > On 2012/08/01 15:41:39, bsalomon wrote: > > I love ...
11 years, 11 months ago (2012-08-01 15:52:13 UTC) #5
Stephen White
On 2012/08/01 15:52:13, bsalomon wrote: > On 2012/08/01 15:42:56, TomH wrote: > > I like ...
11 years, 11 months ago (2012-08-01 16:21:09 UTC) #6
Stephen White
On 2012/08/01 15:51:50, Stephen White wrote: > Another idea I had was to make the ...
11 years, 11 months ago (2012-08-01 17:29:33 UTC) #7
bsalomon
http://codereview.appspot.com/6449075/diff/1/include/core/SkImageFilter.h File include/core/SkImageFilter.h (right): http://codereview.appspot.com/6449075/diff/1/include/core/SkImageFilter.h#newcode95 include/core/SkImageFilter.h:95: // Default impl returns NULL Probably should have some ...
11 years, 11 months ago (2012-08-01 17:37:40 UTC) #8
Stephen White
Fix comments, remove unused var
11 years, 11 months ago (2012-08-01 17:42:18 UTC) #9
Stephen White
http://codereview.appspot.com/6449075/diff/1/include/core/SkImageFilter.h File include/core/SkImageFilter.h (right): http://codereview.appspot.com/6449075/diff/1/include/core/SkImageFilter.h#newcode95 include/core/SkImageFilter.h:95: // Default impl returns NULL On 2012/08/01 17:37:41, bsalomon ...
11 years, 11 months ago (2012-08-01 17:43:02 UTC) #10
TomH
http://codereview.appspot.com/6449075/diff/10001/include/effects/SkMorphologyImageFilter.h File include/effects/SkMorphologyImageFilter.h (right): http://codereview.appspot.com/6449075/diff/10001/include/effects/SkMorphologyImageFilter.h#newcode36 include/effects/SkMorphologyImageFilter.h:36: virtual GrTexture* onFilterImageGPU(GrTexture* src, const SkRect& rect); +SK_OVERRIDE throughout ...
11 years, 11 months ago (2012-08-01 17:55:15 UTC) #11
Stephen White
Add SK_OVERRIDE where possible
11 years, 11 months ago (2012-08-01 17:59:18 UTC) #12
Stephen White
http://codereview.appspot.com/6449075/diff/10001/include/effects/SkMorphologyImageFilter.h File include/effects/SkMorphologyImageFilter.h (right): http://codereview.appspot.com/6449075/diff/10001/include/effects/SkMorphologyImageFilter.h#newcode36 include/effects/SkMorphologyImageFilter.h:36: virtual GrTexture* onFilterImageGPU(GrTexture* src, const SkRect& rect); On 2012/08/01 ...
11 years, 11 months ago (2012-08-01 17:59:38 UTC) #13
bsalomon
On 2012/08/01 17:59:38, Stephen White wrote: > http://codereview.appspot.com/6449075/diff/10001/include/effects/SkMorphologyImageFilter.h > File include/effects/SkMorphologyImageFilter.h (right): > > http://codereview.appspot.com/6449075/diff/10001/include/effects/SkMorphologyImageFilter.h#newcode36 ...
11 years, 11 months ago (2012-08-01 18:02:31 UTC) #14
reed1
I can't speak for the long-term vision, but I sure like removing virtuals that begin ...
11 years, 11 months ago (2012-08-01 19:29:38 UTC) #15
Stephen White
11 years, 11 months ago (2012-08-01 20:16:52 UTC) #16
Landed with r4900.  Closing.
Sign in to reply to this message.

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