summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-06-21 17:30:47 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-06-21 17:30:47 +0100
commit7b80613d6d483cdfd5d0c6311de0f8586092b408 (patch)
tree38223883a61b7e5782944ea882fa14354d712779 /src
parent686ebd4a893d2e583d0cf11bd9f77681dbf0b21c (diff)
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@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/test-compositor-surface.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test-compositor-surface.c b/src/test-compositor-surface.c
index ddee06f3e..1cc5f6921 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,