Skip to content

Commit

Permalink
clip: Skip combining with solid pixel aligned boxes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Wilson committed Apr 25, 2010
1 parent 240ebaf commit 8c72122
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cairo-clip.c
Original file line number Diff line number Diff line change
Expand Up @@ -1212,6 +1212,12 @@ _cairo_clip_combine_with_surface (cairo_clip_t *clip,
return status;
}

if (clip_path->flags & CAIRO_CLIP_PATH_IS_BOX &&
clip_path->path.maybe_fill_region)
{
continue;
}

if (need_translate) {
_cairo_path_fixed_translate (&clip_path->path,
_cairo_fixed_from_int (-dst_x),
Expand Down

0 comments on commit 8c72122

Please sign in to comment.