XCB: Remove an incorrect clipping optimizations

It seems like the idea here was to optimize for the special case of a
rectangular clip, where the region operation could be replace by
direction operation on the draw extents. However, we cannot modify the
geometry for all operations, and in particular the glyphs. So remove
this from the common compositing path.

This fixes partial-clip-text in the test suite.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Uli Schlachter 2010-10-14 13:26:48 +02:00 committed by Chris Wilson
parent 408033b464
commit 6fecbb000d

View file

@ -2407,9 +2407,6 @@ _clip_and_composite (cairo_xcb_surface_t *dst,
is_empty = ! _cairo_rectangle_intersect (&extents->bounded, &rect);
if (unlikely (is_empty && extents->is_bounded))
return CAIRO_STATUS_SUCCESS;
if (cairo_region_num_rectangles (clip_region) == 1)
clip_region = NULL;
}
}