Bug 1029919: Properly do the required composite for unbounded operators even when the fill doesn't intersect the extents. r=jrmuizel

This commit is contained in:
Bas Schouten 2014-07-07 17:35:26 +02:00
parent affcd9024b
commit 3002add78f

View File

@ -3565,9 +3565,11 @@ _clip_and_composite_polygon (cairo_image_surface_t *dst,
return status;
}
_cairo_box_round_to_rectangle (&polygon->extents, &extents->mask);
if (! _cairo_rectangle_intersect (&extents->bounded, &extents->mask))
return CAIRO_STATUS_SUCCESS;
if (_cairo_operator_bounded_by_mask(op)) {
_cairo_box_round_to_rectangle (&polygon->extents, &extents->mask);
if (! _cairo_rectangle_intersect (&extents->bounded, &extents->mask))
return CAIRO_STATUS_SUCCESS;
}
if (antialias != CAIRO_ANTIALIAS_NONE) {
composite_spans_info_t info;