summaryrefslogtreecommitdiff
path: root/src/cairo-surface-fallback.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-08-21 15:51:12 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-08-29 17:07:36 +0100
commit87175334a574fa0f69679b1a0baeeb881eaa439b (patch)
tree69be68280f88fcff022685eada96950b09fb75af /src/cairo-surface-fallback.c
parente65dfacab5d123913a4b2f59967f27c0b0af0692 (diff)
downloadcairo-87175334a574fa0f69679b1a0baeeb881eaa439b.tar.gz
[gl] Use spans for trapezois.
Always use spans, even for unaligned boxes. In the future (given a new interface) we may want to emit the common unaligned box code more efficient than a per-scanline computation -- but for now simply avoid the requirements to write a temporary CPU buffer.
Diffstat (limited to 'src/cairo-surface-fallback.c')
-rw-r--r--src/cairo-surface-fallback.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/cairo-surface-fallback.c b/src/cairo-surface-fallback.c
index 8d4c5a1a9..a5a529cad 100644
--- a/src/cairo-surface-fallback.c
+++ b/src/cairo-surface-fallback.c
@@ -1184,10 +1184,7 @@ _cairo_surface_fallback_stroke (cairo_surface_t *surface,
goto CLEANUP;
}
- if (antialias != CAIRO_ANTIALIAS_NONE &&
- _cairo_surface_check_span_renderer (op, source, surface,
- antialias, NULL))
- {
+ if (_cairo_surface_check_span_renderer (op, source, surface, antialias)) {
cairo_composite_spans_info_t info;
info.polygon = &polygon;
@@ -1327,10 +1324,7 @@ _cairo_surface_fallback_fill (cairo_surface_t *surface,
}
- if (antialias != CAIRO_ANTIALIAS_NONE &&
- _cairo_surface_check_span_renderer (op, source, surface,
- antialias, NULL))
- {
+ if (_cairo_surface_check_span_renderer (op, source, surface, antialias)) {
cairo_composite_spans_info_t info;
info.polygon = &polygon;