DescriptionThis 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 #
MessagesTotal messages: 12
|