Edge antialiasing for convex shapes in Ganesh
authorsenorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 12 May 2011 15:49:15 +0000 (15:49 +0000)
committersenorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 12 May 2011 15:49:15 +0000 (15:49 +0000)
commit92e0f222fb311a296acd081c1216d6b9652347eb
tree17894c6e33a9b8a0cc72e6a03a775aee550db807
parent189520db79e09da6281dabee959397cc48c72e3d
Edge antialiasing for convex shapes in Ganesh

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).

Review URL:  http://codereview.appspot.com/4519054/

git-svn-id: http://skia.googlecode.com/svn/trunk@1314 2bbb7eff-a529-9590-31e7-b0007b416f81
gpu/include/GrDrawTarget.h
gpu/include/GrTesselatedPathRenderer.h
gpu/src/GrDrawTarget.cpp
gpu/src/GrGLProgram.cpp
gpu/src/GrGLProgram.h
gpu/src/GrGpuGLShaders.cpp
gpu/src/GrGpuGLShaders.h
gpu/src/GrTesselatedPathRenderer.cpp
gyp/skia.gyp
src/utils/unix/SkOSWindow_Unix.cpp