[cairo-commit] src/test-compositor-surface.c
Chris Wilson
ickle at kemper.freedesktop.org
Fri Jun 21 09:33:00 PDT 2013
src/test-compositor-surface.c | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 7b80613d6d483cdfd5d0c6311de0f8586092b408
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Fri Jun 21 17:30:47 2013 +0100
test: Use the highest precision rendering for shapes for generating ref results
The test-traps and test-base surfaces are used for generating the
reference results, and so they should opt for using the best rendering
paths through the traps- and base-compositors.
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/test-compositor-surface.c b/src/test-compositor-surface.c
index ddee06f..1cc5f69 100644
--- a/src/test-compositor-surface.c
+++ b/src/test-compositor-surface.c
@@ -145,6 +145,8 @@ test_compositor_surface_stroke (void *_surface,
const cairo_clip_t *clip)
{
test_compositor_surface_t *surface = _surface;
+ if (antialias == CAIRO_ANTIALIAS_DEFAULT)
+ antialias = CAIRO_ANTIALIAS_BEST;
return _cairo_compositor_stroke (surface->base.compositor,
_surface, op, source,
path, style, ctm, ctm_inverse,
@@ -163,6 +165,8 @@ test_compositor_surface_fill (void *_surface,
const cairo_clip_t *clip)
{
test_compositor_surface_t *surface = _surface;
+ if (antialias == CAIRO_ANTIALIAS_DEFAULT)
+ antialias = CAIRO_ANTIALIAS_BEST;
return _cairo_compositor_fill (surface->base.compositor,
_surface, op, source,
path, fill_rule, tolerance, antialias,
More information about the cairo-commit
mailing list