Skip to content

Commit

Permalink
clip: Implement clipping using only the high-level operators.
Browse files Browse the repository at this point in the history
Revamp clipping in preparation for the removal of the low-level interface
and promote backend to use the higher levels. The principle here is that
the higher level interface gives the backend more scope for choosing
better performing primitives.
  • Loading branch information
Chris Wilson committed Jan 22, 2010
1 parent 05bb43a commit 498c100
Show file tree
Hide file tree
Showing 3 changed files with 131 additions and 134 deletions.
6 changes: 5 additions & 1 deletion src/cairo-clip-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ _cairo_clip_get_surface (cairo_clip_t *clip, cairo_surface_t *dst);
cairo_private cairo_status_t
_cairo_clip_combine_with_surface (cairo_clip_t *clip,
cairo_surface_t *dst,
const cairo_rectangle_int_t *extents);
int dst_x, int dst_y);

cairo_private cairo_int_status_t
_cairo_clip_get_region (cairo_clip_t *clip,
Expand All @@ -128,6 +128,10 @@ _cairo_clip_get_boxes (cairo_clip_t *clip,
cairo_box_t **boxes,
int *count);

cairo_private cairo_bool_t
_cairo_clip_contains_rectangle (cairo_clip_t *clip,
const cairo_composite_rectangles_t *extents);

cairo_private void
_cairo_clip_drop_cache (cairo_clip_t *clip);

Expand Down
Loading

0 comments on commit 498c100

Please sign in to comment.