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

Issue 6354062: Added GPU implementation of 2-point conical gradient (Closed)

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

Description

Added GPU implementation of 2-point conical gradient. Committed: https://code.google.com/p/skia/source/detail?r=4442

Patch Set 1 #

Total comments: 20

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+412 lines, -13 lines) Patch
M include/core/SkShader.h View 1 chunk +11 lines, -1 line 0 comments Download
M samplecode/SampleDegenerateTwoPtRadials.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkGradientShader.cpp View 1 1 chunk +41 lines, -0 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 chunks +10 lines, -1 line 0 comments Download
M src/gpu/effects/GrGradientEffects.h View 1 1 chunk +38 lines, -0 lines 0 comments Download
M src/gpu/effects/GrGradientEffects.cpp View 1 2 5 chunks +311 lines, -10 lines 1 comment Download

Messages

Total messages: 16
rileya
12 years ago (2012-07-02 04:49:13 UTC) #1
bsalomon
Nice work, mostly looks good. Do our existing test cases cover both the same center ...
12 years ago (2012-07-02 13:18:47 UTC) #2
TomH
LGTM - nice work for your first patch! For me, the important question was - ...
12 years ago (2012-07-02 17:50:09 UTC) #3
robertphillips
Good job - LGTM modulo nits & some questions. https://codereview.appspot.com/6354062/diff/1/src/effects/SkGradientShader.cpp File src/effects/SkGradientShader.cpp (right): https://codereview.appspot.com/6354062/diff/1/src/effects/SkGradientShader.cpp#newcode2318 src/effects/SkGradientShader.cpp:2318: ...
12 years ago (2012-07-02 18:12:05 UTC) #4
rileya
Update: I changed the shader to work more like the raster implementation; this resulted in ...
12 years ago (2012-07-02 20:27:05 UTC) #5
rileya
https://codereview.appspot.com/6354062/diff/1/src/gpu/effects/GrGradientEffects.cpp File src/gpu/effects/GrGradientEffects.cpp (right): https://codereview.appspot.com/6354062/diff/1/src/gpu/effects/GrGradientEffects.cpp#newcode606 src/gpu/effects/GrGradientEffects.cpp:606: const GrConical2Gradient& s = static_cast<const GrConical2Gradient&>(sBase); On 2012/07/02 18:12:05, ...
12 years ago (2012-07-02 20:38:32 UTC) #6
TomH
https://codereview.appspot.com/6354062/diff/1/src/gpu/effects/GrGradientEffects.h File src/gpu/effects/GrGradientEffects.h (right): https://codereview.appspot.com/6354062/diff/1/src/gpu/effects/GrGradientEffects.h#newcode119 src/gpu/effects/GrGradientEffects.h:119: SkScalarAbs(fRadius0) < SkScalarAbs(fCenterX1); } So you not only removed ...
12 years ago (2012-07-02 20:38:55 UTC) #7
robertphillips
https://codereview.appspot.com/6354062/diff/1/src/gpu/effects/GrGradientEffects.cpp File src/gpu/effects/GrGradientEffects.cpp (right): https://codereview.appspot.com/6354062/diff/1/src/gpu/effects/GrGradientEffects.cpp#newcode606 src/gpu/effects/GrGradientEffects.cpp:606: const GrConical2Gradient& s = static_cast<const GrConical2Gradient&>(sBase); That would make ...
12 years ago (2012-07-02 20:42:12 UTC) #8
TomH
https://codereview.appspot.com/6354062/diff/1/src/gpu/effects/GrGradientEffects.cpp File src/gpu/effects/GrGradientEffects.cpp (right): https://codereview.appspot.com/6354062/diff/1/src/gpu/effects/GrGradientEffects.cpp#newcode606 src/gpu/effects/GrGradientEffects.cpp:606: const GrConical2Gradient& s = static_cast<const GrConical2Gradient&>(sBase); On 2012/07/02 20:38:32, ...
12 years ago (2012-07-02 20:43:24 UTC) #9
bsalomon
https://codereview.appspot.com/6354062/diff/1/src/gpu/effects/GrGradientEffects.cpp File src/gpu/effects/GrGradientEffects.cpp (right): https://codereview.appspot.com/6354062/diff/1/src/gpu/effects/GrGradientEffects.cpp#newcode606 src/gpu/effects/GrGradientEffects.cpp:606: const GrConical2Gradient& s = static_cast<const GrConical2Gradient&>(sBase); On 2012/07/02 20:38:32, ...
12 years ago (2012-07-02 20:47:47 UTC) #10
robertphillips
https://codereview.appspot.com/6354062/diff/1/src/gpu/effects/GrGradientEffects.cpp File src/gpu/effects/GrGradientEffects.cpp (right): https://codereview.appspot.com/6354062/diff/1/src/gpu/effects/GrGradientEffects.cpp#newcode606 src/gpu/effects/GrGradientEffects.cpp:606: const GrConical2Gradient& s = static_cast<const GrConical2Gradient&>(sBase); In this case ...
12 years ago (2012-07-02 21:03:15 UTC) #11
reed1
https://codereview.appspot.com/6354062/diff/9/src/gpu/effects/GrGradientEffects.cpp File src/gpu/effects/GrGradientEffects.cpp (right): https://codereview.appspot.com/6354062/diff/9/src/gpu/effects/GrGradientEffects.cpp#newcode520 src/gpu/effects/GrGradientEffects.cpp:520: // smaller of the two roots On 2012/07/02 20:47:48, ...
12 years ago (2012-07-02 21:06:15 UTC) #12
TomH
On 2012/07/02 21:06:15, reed1 wrote: > https://codereview.appspot.com/6354062/diff/9/src/gpu/effects/GrGradientEffects.cpp > File src/gpu/effects/GrGradientEffects.cpp (right): > > https://codereview.appspot.com/6354062/diff/9/src/gpu/effects/GrGradientEffects.cpp#newcode520 > ...
12 years ago (2012-07-02 21:07:16 UTC) #13
rileya
I've tweaked the comments, including a note about the spec wanting the larger root.
12 years ago (2012-07-02 21:25:39 UTC) #14
bsalomon
LGTM, the updated tests can be a separate CL if you like. https://codereview.appspot.com/6354062/diff/9003/src/gpu/effects/GrGradientEffects.cpp File src/gpu/effects/GrGradientEffects.cpp ...
12 years ago (2012-07-03 12:26:42 UTC) #15
TomH
12 years ago (2012-07-03 12:39:27 UTC) #16
On 2012/07/03 12:26:42, bsalomon wrote:
> LGTM, the updated tests can be a separate CL if you like.
> 
>
https://codereview.appspot.com/6354062/diff/9003/src/gpu/effects/GrGradientEf...
> File src/gpu/effects/GrGradientEffects.cpp (right):
> 
>
https://codereview.appspot.com/6354062/diff/9003/src/gpu/effects/GrGradientEf...
> src/gpu/effects/GrGradientEffects.cpp:619: bool
> GrConical2Gradient::isEqual(const GrCustomStage& sBase) const {
> We should fix this to check for "gradient is the same" rather than "code is
the
> same" for this and other gradients. I think it is OK to check this is as is
> since it is consistent with the others (and the consequence is only perf not
> correctness).
> 
> I'll file a bug to fix them all.

I have a CL to fix them all, but this comment box is too small to contain it.

(Actually, the problem is password management - for some reason I can't get to
valentine over VPN? I think uberproxy or one of the other hacks is interfering
with it.)
Sign in to reply to this message.

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