mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-07 06:18:02 +02:00
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:
parent
408033b464
commit
6fecbb000d
1 changed files with 0 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue