diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-08-24 17:22:34 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-01-03 15:07:18 +0000 |
commit | 5bc1b1f6aac108d9a3963352ad774bb4fcd69e28 (patch) | |
tree | bb5cded7a588e82b5481a0486f76c4c7bf7dca40 /src/test-base-compositor-surface.c | |
parent | 74941f822015cc50cd8477d0cf97f1a70dbff60b (diff) | |
download | cairo-5bc1b1f6aac108d9a3963352ad774bb4fcd69e28.tar.gz |
stroke: Make the incremental trapezoid stroker optionally available again
Whilst it cannot handle self-intersecting strokes (which includes the
antialias region of neighbouring lines and joints), it is about 3x
faster to use than the more robust algorithm. As some backends delegate
the rendering, the quality may still be preserved and so they should be
responsible for choosing the appropriate method for generation of the
stroke geometry.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/test-base-compositor-surface.c')
-rw-r--r-- | src/test-base-compositor-surface.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test-base-compositor-surface.c b/src/test-base-compositor-surface.c index f8fa5178b..ff84b10af 100644 --- a/src/test-base-compositor-surface.c +++ b/src/test-base-compositor-surface.c @@ -662,10 +662,10 @@ base_compositor_stroke (const cairo_compositor_t *_compositor, info.antialias = antialias; _cairo_traps_init_with_clip (&info.traps, extents->clip); - status = _cairo_path_fixed_stroke_to_traps (path, style, - ctm, ctm_inverse, - tolerance, - &info.traps); + status = _cairo_path_fixed_stroke_polygon_to_traps (path, style, + ctm, ctm_inverse, + tolerance, + &info.traps); if (likely (status == CAIRO_INT_STATUS_SUCCESS)) status = trim_extents_to_traps (extents, &info.traps); if (likely (status == CAIRO_INT_STATUS_SUCCESS)) |