Bug 657141 - Part 2: Only optimize away clip levels when using solid alpha masks. r=jrmuizel

This commit is contained in:
Dão Gottwald 2012-01-23 12:00:24 +01:00
parent 40c2071d82
commit d9160ce229

View File

@ -3281,7 +3281,7 @@ _cairo_d2d_mask(void *surface,
cairo_box_t box;
_cairo_box_from_rectangle(&box, &extents);
if (clip) {
if (clip && isSolidAlphaMask) {
// We do some work here to try and avoid pushing and popping clips for rectangular areas,
// if we do this fill rects will occur without rectangular clips being pushed and popped.
// This is faster for non-axis aligned clips in general and allows more efficient batching