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

Issue 5533061: convex path renderer (Closed)

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

Patch Set 1 #

Patch Set 2 : update #

Patch Set 3 : update #

Patch Set 4 : update #

Patch Set 5 : update #

Total comments: 18

Patch Set 6 : changes from comments, also add new shader gen code path to the unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+712 lines, -112 lines) Patch
A gm/convexpaths.cpp View 1 2 3 4 1 chunk +136 lines, -0 lines 0 comments Download
M gyp/gmslides.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M gyp/gpu.gyp View 1 chunk +3 lines, -1 line 0 comments Download
A src/gpu/GrAAConvexPathRenderer.h View 1 chunk +20 lines, -0 lines 0 comments Download
A src/gpu/GrAAConvexPathRenderer.cpp View 1 2 3 4 1 chunk +401 lines, -0 lines 0 comments Download
M src/gpu/GrAAHairLinePathRenderer.cpp View 3 chunks +5 lines, -78 lines 0 comments Download
D src/gpu/GrAddPathRenderers_aahairline.cpp View 1 chunk +0 lines, -20 lines 0 comments Download
A + src/gpu/GrAddPathRenderers_default.cpp View 1 1 chunk +6 lines, -0 lines 0 comments Download
M src/gpu/GrDrawState.h View 1 2 3 4 5 2 chunks +10 lines, -3 lines 0 comments Download
M src/gpu/GrGLProgram.cpp View 1 2 3 4 5 1 chunk +12 lines, -5 lines 0 comments Download
M src/gpu/GrGpuGLShaders.cpp View 1 2 3 4 5 1 chunk +1 line, -3 lines 0 comments Download
M src/gpu/GrPathUtils.h View 1 2 2 chunks +12 lines, -1 line 0 comments Download
M src/gpu/GrPathUtils.cpp View 1 2 3 4 5 2 chunks +105 lines, -1 line 0 comments Download

Messages

Total messages: 6
bsalomon
Adds a new path renderer for convex paths. Disable for now. Will require GM rebaselines ...
12 years, 10 months ago (2012-01-11 15:54:55 UTC) #1
reed1
http://codereview.appspot.com/5533061/diff/6014/src/gpu/GrAAConvexPathRenderer.cpp File src/gpu/GrAAConvexPathRenderer.cpp (right): http://codereview.appspot.com/5533061/diff/6014/src/gpu/GrAAConvexPathRenderer.cpp#newcode307 src/gpu/GrAAConvexPathRenderer.cpp:307: wow -- no obvious way to use a loop ...
12 years, 10 months ago (2012-01-12 18:49:26 UTC) #2
bsalomon
http://codereview.appspot.com/5533061/diff/6014/src/gpu/GrAAConvexPathRenderer.cpp File src/gpu/GrAAConvexPathRenderer.cpp (right): http://codereview.appspot.com/5533061/diff/6014/src/gpu/GrAAConvexPathRenderer.cpp#newcode307 src/gpu/GrAAConvexPathRenderer.cpp:307: On 2012/01/12 18:49:26, reed1 wrote: > wow -- no ...
12 years, 10 months ago (2012-01-12 20:14:53 UTC) #3
reed1
lgtm
12 years, 10 months ago (2012-01-12 20:16:20 UTC) #4
TomH
Didn't finish review, and it isn't feeling timely any more - you already have reed@'s ...
12 years, 10 months ago (2012-01-17 15:35:24 UTC) #5
bsalomon
12 years, 10 months ago (2012-01-17 16:40:38 UTC) #6
Original checkin at r3040, Tom's comments incorporated at r3045.

http://codereview.appspot.com/5533061/diff/6014/gm/convexpaths.cpp
File gm/convexpaths.cpp (right):

http://codereview.appspot.com/5533061/diff/6014/gm/convexpaths.cpp#newcode87
gm/convexpaths.cpp:87: 
On 2012/01/17 15:35:25, TomH wrote:
> Could we have a clean initial commit? Either remote this, or add a comment
about
> why it isn't part of the GM?

Added a comment

http://codereview.appspot.com/5533061/diff/6014/gm/convexpaths.cpp#newcode103
gm/convexpaths.cpp:103: }
On 2012/01/17 15:35:25, TomH wrote:
> Everything is at the origin? Which is the easy way to do things given the nice
> consistent style you're using, but I worry about it, particularly point
> degenerate.
> 
> I suppose down below you add translations; as long as we're in canvas
> coordinates that obviates this comment.

I made the point degenerates all be at 50,50

http://codereview.appspot.com/5533061/diff/6014/src/gpu/GrAAConvexPathRendere...
File src/gpu/GrAAConvexPathRenderer.cpp (right):

http://codereview.appspot.com/5533061/diff/6014/src/gpu/GrAAConvexPathRendere...
src/gpu/GrAAConvexPathRenderer.cpp:93: // so we detect this case and will not
draw.
On 2012/01/17 15:35:25, TomH wrote:
> This description is unclear.

I attempted to clarify

http://codereview.appspot.com/5533061/diff/6014/src/gpu/GrAAConvexPathRendere...
src/gpu/GrAAConvexPathRenderer.cpp:151: // requires modifying the distance calc
in the shader actually shade differently
On 2012/01/17 15:35:25, TomH wrote:
> fix grammar? not clear.
Comment is improved.
Sign in to reply to this message.

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