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

Issue 6299051: Add new gradient to support HTML Canvas2D two-point-radial-gradient. Ours is (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years ago by reed1
Modified:
13 years ago
Reviewers:
bsalomon, TomH
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Add new gradient to support HTML Canvas2D two-point-radial-gradient. Ours is called (for now at least) TwoPointConical, to distinguish it from the existing one (TwoPointRadial), and to reflect its odd behavior where it draws transparent outside the boundary of the "cone" between the two circles. This impl is unsupported by GPU and Printing at the moment, and Chrome does not yet invoke it. Committed: https://code.google.com/p/skia/source/detail?r=4197

Patch Set 1 #

Total comments: 7

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+352 lines, -13 lines) Patch
A gm/base-macpro/twopointconical_4444.png View Binary file 0 comments Download
A gm/base-macpro/twopointconical_565.png View Binary file 0 comments Download
A gm/base-macpro/twopointconical_8888.png View Binary file 0 comments Download
M gm/twopointradial.cpp View 1 4 chunks +24 lines, -12 lines 0 comments Download
M include/effects/SkGradientShader.h View 1 1 chunk +16 lines, -0 lines 0 comments Download
M src/effects/SkGradientShader.cpp View 1 3 chunks +312 lines, -1 line 0 comments Download

Messages

Total messages: 10
reed1
13 years ago (2012-06-06 18:28:01 UTC) #1
reed1
13 years ago (2012-06-06 18:49:57 UTC) #2
TomH
Was I too slow?
13 years ago (2012-06-06 18:51:29 UTC) #3
TomH
https://codereview.appspot.com/6299051/diff/1/gm/twopointradial.cpp File gm/twopointradial.cpp (right): https://codereview.appspot.com/6299051/diff/1/gm/twopointradial.cpp#newcode60 gm/twopointradial.cpp:60: return SkString("twopointconical"); Getting rid of the old GM? This ...
13 years ago (2012-06-06 19:05:12 UTC) #4
reed1
https://codereview.appspot.com/6299051/diff/1/gm/twopointradial.cpp File gm/twopointradial.cpp (right): https://codereview.appspot.com/6299051/diff/1/gm/twopointradial.cpp#newcode60 gm/twopointradial.cpp:60: return SkString("twopointconical"); There were no images checked in before. ...
13 years ago (2012-06-06 19:16:57 UTC) #5
TomH
https://codereview.appspot.com/6299051/diff/1/src/effects/SkGradientShader.cpp File src/effects/SkGradientShader.cpp (right): https://codereview.appspot.com/6299051/diff/1/src/effects/SkGradientShader.cpp#newcode2131 src/effects/SkGradientShader.cpp:2131: return (int)(r - roots); On 2012/06/06 19:16:57, reed1 wrote: ...
13 years ago (2012-06-06 19:36:58 UTC) #6
bsalomon
On 2012/06/06 19:36:58, TomH wrote: > https://codereview.appspot.com/6299051/diff/1/src/effects/SkGradientShader.cpp > File src/effects/SkGradientShader.cpp (right): > > https://codereview.appspot.com/6299051/diff/1/src/effects/SkGradientShader.cpp#newcode2131 > ...
13 years ago (2012-06-06 19:44:32 UTC) #7
reed1
I find the current form readable. If you want it changed, I think you could ...
13 years ago (2012-06-06 19:44:41 UTC) #8
TomH
OK, OK, LGTM. I'll think about an orthogonal CL, but if I want to go ...
13 years ago (2012-06-06 19:45:38 UTC) #9
bsalomon
13 years ago (2012-06-06 19:51:13 UTC) #10
On 2012/06/06 19:45:38, TomH wrote:
> OK, OK, LGTM.
> 
> I'll think about an orthogonal CL, but if I want to go windmill tilting I'll
> probably try to bring SkNEW to Ganesh first.

SkWHATEVER
Sign in to reply to this message.

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