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

Issue 4519054: Edge antialiasing for convex shapes in Ganesh (Closed)

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

Description

This patch implements edge antialiasing for convex shapes, using the fragment shader to compare against the edge equations for each triangle. Currently, it only works for flat shaded primitives (i.e., it was not integrated into the "active stages" path). The skia.gyp changes cause this code to be compiled into SampleApp, but do not enable the tesselated path by default. Notes: the SkOSWindow_Unix.cpp change is to silence a valgrind warning about memcpy() with overlapping regions. The GrBinHashKey change is to avoid running a two-pass hash (GrProgramDesc is now 52 bytes or so, exceeding the 32 byte default size).

Patch Set 1 #

Patch Set 2 : Remove the code that forces blending on #

Total comments: 8

Patch Set 3 : Incorporate reviewer comments #

Patch Set 4 : Init the edges uniform as requested #

Unified diffs Side-by-side diffs Delta from patch set Stats (+203 lines, -21 lines) Patch
gpu/include/GrDrawTarget.h View 4 chunks +22 lines, -5 lines 0 comments Download
gpu/include/GrTesselatedPathRenderer.h View 1 chunk +3 lines, -0 lines 0 comments Download
gpu/src/GrDrawTarget.cpp View 1 2 2 chunks +12 lines, -0 lines 0 comments Download
gpu/src/GrGLProgram.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
gpu/src/GrGLProgram.cpp View 1 2 4 chunks +30 lines, -0 lines 0 comments Download
gpu/src/GrGpuGLShaders.h View 1 chunk +3 lines, -0 lines 0 comments Download
gpu/src/GrGpuGLShaders.cpp View 1 2 4 chunks +20 lines, -1 line 0 comments Download
gpu/src/GrTesselatedPathRenderer.cpp View 6 chunks +104 lines, -9 lines 0 comments Download
gyp/skia.gyp View 3 chunks +5 lines, -5 lines 0 comments Download
src/utils/unix/SkOSWindow_Unix.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12
Stephen White
12 years, 11 months ago (2011-05-12 14:19:48 UTC) #1
Stephen White
Remove the code that forces blending on
12 years, 11 months ago (2011-05-12 14:22:39 UTC) #2
junov1
Awesome change! http://codereview.appspot.com/4519054/diff/10001/gpu/src/GrGLProgram.cpp File gpu/src/GrGLProgram.cpp (right): http://codereview.appspot.com/4519054/diff/10001/gpu/src/GrGLProgram.cpp#newcode611 gpu/src/GrGLProgram.cpp:611: GrAssert(-1 != programData->fUniLocations.fEdgesUni); -1 => GrGLProgram::kUnusedUniform http://codereview.appspot.com/4519054/diff/10001/gpu/src/GrGLProgram.cpp#newcode613 ...
12 years, 11 months ago (2011-05-12 14:46:58 UTC) #3
bsalomon
Cool! On 2011/05/12 14:22:39, Stephen White wrote: > Remove the code that forces blending on ...
12 years, 11 months ago (2011-05-12 14:54:14 UTC) #4
Stephen White
Incorporate reviewer comments
12 years, 11 months ago (2011-05-12 15:25:47 UTC) #5
junov1
LGTM
12 years, 11 months ago (2011-05-12 15:28:04 UTC) #6
Stephen White
Init the edges uniform as requested
12 years, 11 months ago (2011-05-12 15:29:22 UTC) #7
Stephen White
http://codereview.appspot.com/4519054/diff/10001/gpu/src/GrGLProgram.cpp File gpu/src/GrGLProgram.cpp (right): http://codereview.appspot.com/4519054/diff/10001/gpu/src/GrGLProgram.cpp#newcode611 gpu/src/GrGLProgram.cpp:611: GrAssert(-1 != programData->fUniLocations.fEdgesUni); On 2011/05/12 14:46:58, junov1 wrote: > ...
12 years, 11 months ago (2011-05-12 15:32:59 UTC) #8
bsalomon
LGTM On 2011/05/12 15:32:59, Stephen White wrote: > http://codereview.appspot.com/4519054/diff/10001/gpu/src/GrGLProgram.cpp > File gpu/src/GrGLProgram.cpp (right): > > ...
12 years, 11 months ago (2011-05-12 15:38:05 UTC) #9
Stephen White
On 2011/05/12 14:54:14, bsalomon wrote: > Cool! > > On 2011/05/12 14:22:39, Stephen White wrote: ...
12 years, 11 months ago (2011-05-12 15:39:46 UTC) #10
bsalomon
On Thu, May 12, 2011 at 11:39 AM, <senorblanco@chromium.org> wrote: > On 2011/05/12 14:54:14, bsalomon ...
12 years, 11 months ago (2011-05-12 15:49:13 UTC) #11
Stephen White
12 years, 11 months ago (2011-05-12 17:03:36 UTC) #12
Sign in to reply to this message.

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