mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-03-17 20:40:39 +01:00
[path] Rename _cairo_path_fixed_approximate_extents()
Rename approximate_extents() to approximate_clip_extents() so that it is consistent with the fill and stroke variants and clearer under what circumstances you may wish to use it.
This commit is contained in:
parent
75f7c420b6
commit
778ced4879
5 changed files with 8 additions and 8 deletions
|
|
@ -293,7 +293,7 @@ _cairo_analysis_surface_intersect_clip_path (void *abstract_surface,
|
|||
cairo_rectangle_int_t extents;
|
||||
cairo_bool_t is_empty;
|
||||
|
||||
_cairo_path_fixed_approximate_extents (path, &extents);
|
||||
_cairo_path_fixed_approximate_clip_extents (path, &extents);
|
||||
is_empty = _cairo_rectangle_intersect (&surface->current_clip,
|
||||
&extents);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ _cairo_clip_path_intersect_to_rectangle (cairo_clip_path_t *clip_path,
|
|||
while (clip_path) {
|
||||
cairo_rectangle_int_t extents;
|
||||
|
||||
_cairo_path_fixed_approximate_extents (&clip_path->path, &extents);
|
||||
_cairo_path_fixed_approximate_clip_extents (&clip_path->path, &extents);
|
||||
|
||||
if (! _cairo_rectangle_intersect (rectangle, &extents))
|
||||
return CAIRO_STATUS_SUCCESS;
|
||||
|
|
@ -577,7 +577,7 @@ _cairo_clip_intersect_mask_using_spans (cairo_clip_t *clip,
|
|||
{
|
||||
cairo_rectangle_int_t extents;
|
||||
|
||||
_cairo_path_fixed_approximate_extents (path, &extents);
|
||||
_cairo_path_fixed_approximate_clip_extents (path, &extents);
|
||||
if (! _cairo_rectangle_intersect (&surface_rect, &extents))
|
||||
goto SUCCESS;
|
||||
|
||||
|
|
|
|||
|
|
@ -156,8 +156,8 @@ _cairo_path_bounder_close_path (void *closure)
|
|||
* the control points of the curves, not the flattened path).
|
||||
*/
|
||||
void
|
||||
_cairo_path_fixed_approximate_extents (cairo_path_fixed_t *path,
|
||||
cairo_rectangle_int_t *extents)
|
||||
_cairo_path_fixed_approximate_clip_extents (cairo_path_fixed_t *path,
|
||||
cairo_rectangle_int_t *extents)
|
||||
{
|
||||
cairo_path_bounder_t bounder;
|
||||
cairo_status_t status;
|
||||
|
|
|
|||
|
|
@ -957,7 +957,7 @@ _cairo_surface_fallback_fill (cairo_surface_t *surface,
|
|||
if (_cairo_operator_bounded_by_mask (op)) {
|
||||
cairo_rectangle_int_t path_extents;
|
||||
|
||||
_cairo_path_fixed_approximate_fill_extents (path,
|
||||
_cairo_path_fixed_approximate_clip_extents (path,
|
||||
&path_extents);
|
||||
if (! _cairo_rectangle_intersect (&extents, &path_extents))
|
||||
return CAIRO_STATUS_SUCCESS;
|
||||
|
|
|
|||
|
|
@ -1540,8 +1540,8 @@ _cairo_path_fixed_append (cairo_path_fixed_t *path,
|
|||
cairo_direction_t dir);
|
||||
|
||||
cairo_private void
|
||||
_cairo_path_fixed_approximate_extents (cairo_path_fixed_t *path,
|
||||
cairo_rectangle_int_t *extents);
|
||||
_cairo_path_fixed_approximate_clip_extents (cairo_path_fixed_t *path,
|
||||
cairo_rectangle_int_t *extents);
|
||||
|
||||
cairo_private void
|
||||
_cairo_path_fixed_approximate_fill_extents (cairo_path_fixed_t *path,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue