diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-12-18 14:52:03 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-12-18 14:55:20 +0000 |
commit | 813cbf13ddbd3d4b708b3b362dd6c108966f44d5 (patch) | |
tree | db9844d62b71295e5431e83da34c18304e67c1e3 /src/cairo-surface-fallback.c | |
parent | dea40e61babe608315b6d365094cf518814b134e (diff) |
[path] Separate the approx. bounds into 3 distinct functions
Based on feedback from Jeff Muizelaar, there is a case for a very quick
and dirty extents approximation based solely on the curve control points
(for example when computing the clip intersect rectangle of a path) and
by moving the stroke extension into a core function we can clean up the
interface for all users, and centralise the logic of approximating the
stroke extents.
Diffstat (limited to 'src/cairo-surface-fallback.c')
-rw-r--r-- | src/cairo-surface-fallback.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cairo-surface-fallback.c b/src/cairo-surface-fallback.c index 0fd1dee2..9cd59d42 100644 --- a/src/cairo-surface-fallback.c +++ b/src/cairo-surface-fallback.c @@ -955,12 +955,12 @@ _cairo_surface_fallback_fill (cairo_surface_t *surface, info.antialias = antialias; if (_cairo_operator_bounded_by_mask (op)) { - cairo_box_t path_extents; + cairo_rectangle_int_t path_extents; - _cairo_path_fixed_approximate_extents (path, - tolerance, - &path_extents); - if (! _cairo_rectangle_intersect_box (&extents, &path_extents)) + _cairo_path_fixed_approximate_fill_extents (path, + tolerance, + &path_extents); + if (! _cairo_rectangle_intersect (&extents, &path_extents)) return CAIRO_STATUS_SUCCESS; } |