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

Issue 6449067: Remove old constructors from GrGradientEffect subclasses, and moved their declarations into source … (Closed)

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

Description

Remove old constructors from GrGradientEffect subclasses, and moved their declarations into source files. Committed: https://code.google.com/p/skia/source/detail?r=4870

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : Rearranged to put all the GPU stuff in one continuous block, and inlined a bunch. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+247 lines, -358 lines) Patch
M src/effects/gradients/SkGradientShader.cpp View 1 chunk +0 lines, -6 lines 0 comments Download
M src/effects/gradients/SkGradientShaderPriv.h View 1 chunk +0 lines, -3 lines 0 comments Download
M src/effects/gradients/SkLinearGradient.h View 1 chunk +0 lines, -24 lines 0 comments Download
M src/effects/gradients/SkLinearGradient.cpp View 1 2 3 chunks +32 lines, -26 lines 0 comments Download
M src/effects/gradients/SkRadialGradient.h View 1 chunk +0 lines, -23 lines 0 comments Download
M src/effects/gradients/SkRadialGradient.cpp View 1 2 5 chunks +37 lines, -30 lines 0 comments Download
M src/effects/gradients/SkSweepGradient.h View 1 chunk +0 lines, -23 lines 0 comments Download
M src/effects/gradients/SkSweepGradient.cpp View 1 2 4 chunks +32 lines, -27 lines 0 comments Download
M src/effects/gradients/SkTwoPointConicalGradient.h View 1 chunk +0 lines, -40 lines 0 comments Download
M src/effects/gradients/SkTwoPointConicalGradient.cpp View 1 2 6 chunks +74 lines, -59 lines 0 comments Download
M src/effects/gradients/SkTwoPointRadialGradient.h View 1 chunk +0 lines, -40 lines 0 comments Download
M src/effects/gradients/SkTwoPointRadialGradient.cpp View 1 2 5 chunks +72 lines, -57 lines 0 comments Download

Messages

Total messages: 6
rileya
12 years, 3 months ago (2012-07-31 16:41:34 UTC) #1
TomH
LGTM. We get the source code a tiny bit shorter by inlining the member functions, ...
12 years, 3 months ago (2012-07-31 17:35:22 UTC) #2
bsalomon
http://codereview.appspot.com/6449067/diff/1/src/effects/gradients/SkLinearGradient.cpp File src/effects/gradients/SkLinearGradient.cpp (right): http://codereview.appspot.com/6449067/diff/1/src/effects/gradients/SkLinearGradient.cpp#newcode65 src/effects/gradients/SkLinearGradient.cpp:65: class GrGLLinearGradient; Since I'm going to have to put ...
12 years, 3 months ago (2012-07-31 17:40:09 UTC) #3
bsalomon
On 2012/07/31 17:35:22, TomH wrote: > LGTM. > > We get the source code a ...
12 years, 3 months ago (2012-07-31 17:41:19 UTC) #4
rileya
I moved all the GrGradientEffect subclass declarations to the end of the files with their ...
12 years, 3 months ago (2012-07-31 20:22:14 UTC) #5
bsalomon
12 years, 3 months ago (2012-07-31 20:30:43 UTC) #6
On 2012/07/31 20:22:14, rileya wrote:
> I moved all the GrGradientEffect subclass declarations to the end of the files
> with their GrGL counterparts, and since none of their functions were more than
a
> few lines, inlined all of them into those class declarations.
> 
> As suggested, this required moving asNewCustomStage to the bottom of each
file,
> as well as a few other small moves due to interdependence between the Gr and
> GrGL classes.

LGTM
Sign in to reply to this message.

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