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

Issue 6447049: Split SkGradientShader into separate files for each gradient subclass. (Closed)

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

Description

Split SkGradientShader into separate files for each gradient subclass. Committed: https://code.google.com/p/skia/source/detail?r=4792

Patch Set 1 #

Patch Set 2 : Move SkGradientShader and several supporting files into gradients directory to reduce ../-ing #

Total comments: 4

Patch Set 3 : #

Patch Set 4 : Move some static functions from SkGradientPriv down into specific gradient implementations. #

Patch Set 5 : Whoops, moved one more static down into SkLinearGradient.cpp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2549 lines, -5769 lines) Patch
M gyp/effects.gyp View 1 2 3 chunks +18 lines, -6 lines 0 comments Download
D src/effects/SkBitmapCache.h View 1 2 1 chunk +0 lines, -50 lines 0 comments Download
D src/effects/SkBitmapCache.cpp View 1 2 1 chunk +0 lines, -154 lines 0 comments Download
D src/effects/SkClampRange.h View 1 2 1 chunk +0 lines, -39 lines 0 comments Download
D src/effects/SkClampRange.cpp View 1 2 1 chunk +0 lines, -166 lines 0 comments Download
D src/effects/SkGradientShader.cpp View 1 2 1 chunk +0 lines, -2929 lines 0 comments Download
D src/effects/SkRadialGradient_Table.h View 1 2 1 chunk +0 lines, -139 lines 0 comments Download
A + src/effects/gradients/SkBitmapCache.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + src/effects/gradients/SkBitmapCache.cpp View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + src/effects/gradients/SkClampRange.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + src/effects/gradients/SkClampRange.cpp View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + src/effects/gradients/SkGradientShader.cpp View 1 19 chunks +30 lines, -2290 lines 0 comments Download
A src/effects/gradients/SkGradientShaderPriv.h View 1 2 3 4 1 chunk +193 lines, -0 lines 0 comments Download
A src/effects/gradients/SkLinearGradient.h View 1 1 chunk +41 lines, -0 lines 0 comments Download
A src/effects/gradients/SkLinearGradient.cpp View 1 2 3 4 1 chunk +484 lines, -0 lines 0 comments Download
A src/effects/gradients/SkRadialGradient.h View 1 1 chunk +43 lines, -0 lines 0 comments Download
A src/effects/gradients/SkRadialGradient.cpp View 1 2 1 chunk +479 lines, -0 lines 0 comments Download
A + src/effects/gradients/SkRadialGradient_Table.h View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A src/effects/gradients/SkSweepGradient.h View 1 1 chunk +43 lines, -0 lines 0 comments Download
A src/effects/gradients/SkSweepGradient.cpp View 1 2 1 chunk +389 lines, -0 lines 0 comments Download
A src/effects/gradients/SkTwoPointConicalGradient.h View 1 1 chunk +82 lines, -0 lines 0 comments Download
A src/effects/gradients/SkTwoPointConicalGradient.cpp View 1 2 1 chunk +333 lines, -0 lines 0 comments Download
A src/effects/gradients/SkTwoPointRadialGradient.h View 1 1 chunk +54 lines, -0 lines 0 comments Download
A src/effects/gradients/SkTwoPointRadialGradient.cpp View 1 2 1 chunk +364 lines, -0 lines 0 comments Download
M tests/ClampRangeTest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9
rileya
This simply moves code around into new files and renames '[Linear|Radial|etc]_Gradient' to 'Sk[Linear|Radial|etc]Gradient' (and 'Gradient_Shader' ...
12 years, 4 months ago (2012-07-26 14:54:34 UTC) #1
rileya
Moved SkGradientEffects.cpp, SkGradientEffectsPriv.h and some supporting files (BitmapCache, RadialGradient_Table, ClampRange) into gradients directory. This saves ...
12 years, 4 months ago (2012-07-26 16:30:26 UTC) #2
bsalomon
On 2012/07/26 16:30:26, rileya wrote: > Moved SkGradientEffects.cpp, SkGradientEffectsPriv.h and some supporting files > (BitmapCache, ...
12 years, 4 months ago (2012-07-26 17:48:29 UTC) #3
TomH
Yeah, aside from wondering whether we really want to add gradients/, LGTM modulo nits. https://codereview.appspot.com/6447049/diff/2001/src/effects/gradients/SkGradientShaderPriv.h ...
12 years, 4 months ago (2012-07-26 17:54:50 UTC) #4
bsalomon
https://codereview.appspot.com/6447049/diff/2001/src/effects/gradients/SkGradientShaderPriv.h File src/effects/gradients/SkGradientShaderPriv.h (right): https://codereview.appspot.com/6447049/diff/2001/src/effects/gradients/SkGradientShaderPriv.h#newcode29 src/effects/gradients/SkGradientShaderPriv.h:29: static void sk_memset32_dither(uint32_t dst[], uint32_t v0, uint32_t v1, On ...
12 years, 4 months ago (2012-07-26 18:01:44 UTC) #5
reed1
lgtm is SkGradientShader.cpp marked for delete (logically)? I just looks modified in the cl
12 years, 4 months ago (2012-07-26 18:02:45 UTC) #6
rileya
On 2012/07/26 18:02:45, reed1 wrote: > lgtm > > is SkGradientShader.cpp marked for delete (logically)? ...
12 years, 4 months ago (2012-07-26 18:10:08 UTC) #7
rileya
Patch set 3 replaced function ptr compares that became problematic after splitting things up with ...
12 years, 4 months ago (2012-07-26 19:46:12 UTC) #8
bsalomon
12 years, 4 months ago (2012-07-26 19:58:32 UTC) #9
On 2012/07/26 19:46:12, rileya wrote:
> Patch set 3 replaced function ptr compares that became problematic after
> splitting things up with checks on the TileMode enum. Set 4 moved some static
> functions in SkGradientShaderPriv.h that were only used in one gradient
subclass
> down into the appropriate source files.

LGTM
Sign in to reply to this message.

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