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

Issue 4289072: Implement tesselated path renderer (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 7 months ago by Stephen White
Modified:
13 years, 7 months ago
Reviewers:
reed, bsalomon
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

This CL implements a tesselated path renderer, using GLU's libtess. All of the fill modes except hairline are supported. Note that the path renderer is not enabled by default; to enable it, replace "GrCreatePathRenderer_none.cpp" with "GrCreatePathRenderer_tesselated.cpp" in skia.gyp, and run gyp_skia, and build. This change also contains a number of build fixes for Win32 (for building SampleApp on VS2008) and Mac (for my ancient Mac Pro which supports GL_EXT_framebuffer_object but not GL_ARB_framebuffer_object). Also, priorityq-heap.c was removed from the SampleApp build, since it's #included by priorityq.c (weird, I know). NB: when this change is rolled into skia, some modifications to chromium's skia.gyp will be necessary.

Patch Set 1 #

Total comments: 6

Patch Set 2 : Responding to comments #

Patch Set 3 : Move curve evaluation funcs to (new) SkPathUtils #

Patch Set 4 : Fix gyp file #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+569 lines, -294 lines) Patch
gpu/include/GrConfig.h View 1 2 chunks +10 lines, -0 lines 0 comments Download
gpu/include/GrPathRenderer.h View 1 2 1 chunk +0 lines, -156 lines 0 comments Download
gpu/include/GrTesselatedPathRenderer.h View 1 1 chunk +44 lines, -0 lines 0 comments Download
gpu/src/GrCreatePathRenderer_tesselated.cpp View 1 1 chunk +20 lines, -0 lines 0 comments Download
gpu/src/GrGLInterface.cpp View 1 1 chunk +1 line, -1 line 1 comment Download
gpu/src/GrGpu.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
gpu/src/GrPathRenderer.cpp View 1 2 6 chunks +13 lines, -135 lines 0 comments Download
gpu/src/GrPathUtils.h View 1 2 1 chunk +52 lines, -0 lines 0 comments Download
gpu/src/GrPathUtils.cpp View 1 2 1 chunk +144 lines, -0 lines 0 comments Download
gpu/src/GrTesselatedPathRenderer.cpp View 1 2 1 chunk +276 lines, -0 lines 0 comments Download
gyp/skia.gyp View 1 2 3 6 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 14
Stephen White
13 years, 7 months ago (2011-03-25 20:39:50 UTC) #1
bsalomon
Not knowing the GLU tessellator I can't really comment on how you're using it, but ...
13 years, 7 months ago (2011-03-25 21:17:32 UTC) #2
Stephen White
On 2011/03/25 21:17:32, bsalomon wrote: > Not knowing the GLU tessellator I can't really comment ...
13 years, 7 months ago (2011-03-28 15:44:03 UTC) #3
Stephen White
http://codereview.appspot.com/4289072/diff/1/gpu/include/GrPathRenderer.h File gpu/include/GrPathRenderer.h (right): http://codereview.appspot.com/4289072/diff/1/gpu/include/GrPathRenderer.h#newcode178 gpu/include/GrPathRenderer.h:178: GrPathFill fill) const { return true; } On 2011/03/25 ...
13 years, 7 months ago (2011-03-28 15:44:16 UTC) #4
Stephen White
Responding to comments
13 years, 7 months ago (2011-03-28 15:45:03 UTC) #5
bsalomon
On 2011/03/28 15:44:16, Stephen White wrote: w is this handled in the existing C2D code? ...
13 years, 7 months ago (2011-03-28 17:53:05 UTC) #6
bsalomon
On 2011/03/28 15:44:03, Stephen White wrote: > On 2011/03/25 21:17:32, bsalomon wrote: > > My ...
13 years, 7 months ago (2011-03-28 17:55:33 UTC) #7
Stephen White
Move curve evaluation funcs to (new) SkPathUtils
13 years, 7 months ago (2011-03-28 19:29:09 UTC) #8
Stephen White
Fix gyp file
13 years, 7 months ago (2011-03-28 19:30:27 UTC) #9
Stephen White
On 2011/03/28 17:55:33, bsalomon wrote: > On 2011/03/28 15:44:03, Stephen White wrote: > > On ...
13 years, 7 months ago (2011-03-28 19:39:03 UTC) #10
bsalomon
> My thinking is that if those are the only two subclasses, and both of ...
13 years, 7 months ago (2011-03-28 20:29:46 UTC) #11
bsalomon
> My thinking is that if those are the only two subclasses, and both of ...
13 years, 7 months ago (2011-03-28 20:29:48 UTC) #12
bsalomon
http://codereview.appspot.com/4289072/diff/10011/gpu/src/GrGLInterface.cpp File gpu/src/GrGLInterface.cpp (left): http://codereview.appspot.com/4289072/diff/10011/gpu/src/GrGLInterface.cpp#oldcode150 gpu/src/GrGLInterface.cpp:150: #if GL_EXT_framebuffer_object && !GR_MAC_BUILD I tested this on 10.6.6 ...
13 years, 7 months ago (2011-03-28 20:30:10 UTC) #13
Stephen White
13 years, 7 months ago (2011-03-28 20:48:25 UTC) #14
Sign in to reply to this message.

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