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

Issue 6450131: Made gradient effects use GrTextureStripAtlas. (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

Made gradient effects use GrTextureStripAtlas. Committed: https://code.google.com/p/skia/source/detail?r=5101

Patch Set 1 #

Patch Set 2 : Bugfix in GrTextureStripAtlas. #

Patch Set 3 : Tab -> spaces. #

Total comments: 9

Patch Set 4 : #

Total comments: 4

Patch Set 5 : Fix nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -29 lines) Patch
M src/effects/gradients/SkGradientShader.cpp View 1 2 3 4 4 chunks +53 lines, -15 lines 0 comments Download
M src/effects/gradients/SkGradientShaderPriv.h View 1 2 3 4 5 chunks +22 lines, -0 lines 0 comments Download
M src/effects/gradients/SkTwoPointConicalGradient.cpp View 2 chunks +3 lines, -1 line 0 comments Download
M src/effects/gradients/SkTwoPointRadialGradient.cpp View 2 chunks +3 lines, -1 line 0 comments Download
M src/gpu/effects/GrTextureStripAtlas.cpp View 1 2 4 chunks +5 lines, -12 lines 0 comments Download

Messages

Total messages: 9
rileya
Actually hooked up GrTextureStripAtlas to be used by GPU gradients (we still fall back on ...
12 years, 4 months ago (2012-08-14 17:57:18 UTC) #1
bsalomon
http://codereview.appspot.com/6450131/diff/6001/src/effects/gradients/SkGradientShader.cpp File src/effects/gradients/SkGradientShader.cpp (right): http://codereview.appspot.com/6450131/diff/6001/src/effects/gradients/SkGradientShader.cpp#newcode743 src/effects/gradients/SkGradientShader.cpp:743: fUseAtlas = false; is fUseAtlas an alias for (-1 ...
12 years, 4 months ago (2012-08-14 19:08:26 UTC) #2
TomH
Modulo Brian's questions, LGTM. http://codereview.appspot.com/6450131/diff/6001/src/effects/gradients/SkGradientShader.cpp File src/effects/gradients/SkGradientShader.cpp (right): http://codereview.appspot.com/6450131/diff/6001/src/effects/gradients/SkGradientShader.cpp#newcode695 src/effects/gradients/SkGradientShader.cpp:695: if (yCoord != fCachedYCoord) { ...
12 years, 4 months ago (2012-08-14 19:35:00 UTC) #3
rileya
http://codereview.appspot.com/6450131/diff/6001/src/effects/gradients/SkGradientShaderPriv.h File src/effects/gradients/SkGradientShaderPriv.h (right): http://codereview.appspot.com/6450131/diff/6001/src/effects/gradients/SkGradientShaderPriv.h#newcode238 src/effects/gradients/SkGradientShaderPriv.h:238: bool useAtlas() const { return fUseAtlas; } On 2012/08/14 ...
12 years, 4 months ago (2012-08-14 19:42:40 UTC) #4
bsalomon
On 2012/08/14 19:42:40, rileya wrote: > http://codereview.appspot.com/6450131/diff/6001/src/effects/gradients/SkGradientShaderPriv.h > File src/effects/gradients/SkGradientShaderPriv.h (right): > > http://codereview.appspot.com/6450131/diff/6001/src/effects/gradients/SkGradientShaderPriv.h#newcode238 > ...
12 years, 4 months ago (2012-08-14 19:46:39 UTC) #5
rileya
http://codereview.appspot.com/6450131/diff/6001/src/effects/gradients/SkGradientShader.cpp File src/effects/gradients/SkGradientShader.cpp (right): http://codereview.appspot.com/6450131/diff/6001/src/effects/gradients/SkGradientShader.cpp#newcode695 src/effects/gradients/SkGradientShader.cpp:695: if (yCoord != fCachedYCoord) { On 2012/08/14 19:35:00, TomH ...
12 years, 4 months ago (2012-08-14 20:06:15 UTC) #6
bsalomon
LGTM modulo nits. http://codereview.appspot.com/6450131/diff/6001/src/effects/gradients/SkGradientShader.cpp File src/effects/gradients/SkGradientShader.cpp (right): http://codereview.appspot.com/6450131/diff/6001/src/effects/gradients/SkGradientShader.cpp#newcode695 src/effects/gradients/SkGradientShader.cpp:695: if (yCoord != fCachedYCoord) { On ...
12 years, 4 months ago (2012-08-14 20:17:17 UTC) #7
rileya
http://codereview.appspot.com/6450131/diff/9002/src/effects/gradients/SkGradientShader.cpp File src/effects/gradients/SkGradientShader.cpp (right): http://codereview.appspot.com/6450131/diff/9002/src/effects/gradients/SkGradientShader.cpp#newcode755 src/effects/gradients/SkGradientShader.cpp:755: if (-1 != fRow) { On 2012/08/14 20:17:17, bsalomon ...
12 years, 4 months ago (2012-08-14 20:29:29 UTC) #8
bsalomon
12 years, 4 months ago (2012-08-14 20:42:21 UTC) #9
Do it!


On Tue, Aug 14, 2012 at 4:29 PM, <rileya@google.com> wrote:

>
> http://codereview.appspot.com/**6450131/diff/9002/src/effects/**
>
gradients/SkGradientShader.cpp<http://codereview.appspot.com/6450131/diff/9002/src/effects/gradients/SkGradientShader.cpp>
> File src/effects/gradients/**SkGradientShader.cpp (right):
>
> http://codereview.appspot.com/**6450131/diff/9002/src/effects/**
>
gradients/SkGradientShader.**cpp#newcode755<http://codereview.appspot.com/6450131/diff/9002/src/effects/gradients/SkGradientShader.cpp#newcode755>
> src/effects/gradients/**SkGradientShader.cpp:755: if (-1 != fRow) {
> On 2012/08/14 20:17:17, bsalomon wrote:
>
>> maybe this->useAtlas() is slightly clearer?
>>
>
> Done.
>
>
> http://codereview.appspot.com/**6450131/diff/9002/src/effects/**gradients/
>
**SkGradientShaderPriv.h<http://codereview.appspot.com/6450131/diff/9002/src/effects/gradients/SkGradientShaderPriv.h>
> File src/effects/gradients/**SkGradientShaderPriv.h (right):
>
> http://codereview.appspot.com/**6450131/diff/9002/src/effects/**gradients/
>
**SkGradientShaderPriv.h#**newcode243<http://codereview.appspot.com/6450131/diff/9002/src/effects/gradients/SkGradientShaderPriv.h#newcode243>
> src/effects/gradients/**SkGradientShaderPriv.h:243: return
> INHERITED::isEqual(stage) && useAtlas() == s.useAtlas() && fYCoord ==
> s.getYCoord();
> On 2012/08/14 20:17:17, bsalomon wrote:
>
>> style nit: this->useAtlas().
>>
>
> And done.
>
>
http://codereview.appspot.com/**6450131/<http://codereview.appspot.com/6450131/>
>
Sign in to reply to this message.

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