DescriptionBetter method for rendering AA ellipses.
This uses the standard ellipse equation as a signed distance
test, and adjusts the result by the length of the gradient
at that point to get a better approximation of the distance
to the ellipse. It replaces the standard ellipse and
roundrect shader renderers.
Also adds a check to see if the curvature extrema of the
stroke are less than the curvature extrema of the ellipse (i.e.
the radius of curvature is larger). In this case, it's no
longer an ellipse and we can't use this renderer.
Only supports stroking for near-circular ellipses.
Committed: http://code.google.com/p/skia/source/detail?r=9162
Patch Set 1 #Patch Set 2 : Remove some commented out code, clean up 100+ char lines #Patch Set 3 : Better comment for curvature extrema check #Patch Set 4 : A little more cleanup #Patch Set 5 : Remove RectBench change #Patch Set 6 : Add SK_ScalarNearlyZero comment back in #Patch Set 7 : Fix nexus_7 issue #Patch Set 8 : Restore vector squaring #Patch Set 9 : Fix some comments to match new code #Patch Set 10 : Rebase to HEAD #Patch Set 11 : Restrict stroking to near-circular ellipses; minor change to improve f.p. precision #
Total comments: 10
Patch Set 12 : Remove some unnecessary divides #
Total comments: 2
Patch Set 13 : Some perf tweaks #Messages
Total messages: 15 (0 generated)
|