diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-08-15 09:44:03 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-08-15 10:31:47 +0100 |
commit | 545f30856aac98199a49cf66c72dbcb66c1f3a4f (patch) | |
tree | 995aa743e7390b83718280b2dd770c9b794f6931 /src/cairo-path-fixed.c | |
parent | bbe704406ca97cd51ed1fcc76da7648abde36331 (diff) |
stroke: Convert the outlines into contour and then into a polygon
In step 1 of speeding up stroking, we introduce contours as a means for
tracking the connected edges around the stroke. By keeping track of
these chains, we can analyse the edges as we proceed and eliminate
redundant vertices speeding up rasterisation.
Coincidentally fixes line-width-tolerance (looks like a combination of
using spline tangent vectors and tolerance).
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-path-fixed.c')
-rw-r--r-- | src/cairo-path-fixed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-path-fixed.c b/src/cairo-path-fixed.c index a562e5bbf..d67954f84 100644 --- a/src/cairo-path-fixed.c +++ b/src/cairo-path-fixed.c @@ -1128,7 +1128,7 @@ _cpf_curve_to (void *closure, cairo_point_t *p0 = &cpf->current_point; if (! _cairo_spline_init (&spline, - cpf->line_to, + (cairo_spline_add_point_func_t)cpf->line_to, cpf->closure, p0, p1, p2, p3)) { |