diff options
author | 2013-05-08 13:59:36 +0000 | |
---|---|---|
committer | 2013-05-08 13:59:36 +0000 | |
commit | 74d50a4d125c551bc92235d0ba621bee216f3650 (patch) | |
tree | 593daee6d478ab08656b96c15f59f55d70f4b404 /src/gpu/GrPath.cpp | |
parent | d0280567129a1ede91730f96a9c5c863beb2bc7b (diff) |
Better 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.
Committed: http://code.google.com/p/skia/source/detail?r=9016
R=bsalomon@google.com, robertphillips@google.com
Author: jvanverth@google.com
Review URL: https://chromiumcodereview.appspot.com/14938004
git-svn-id: http://skia.googlecode.com/svn/trunk@9055 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrPath.cpp')
0 files changed, 0 insertions, 0 deletions