Function damage_area
pub fn damage_area(rects: &[FineDamageRect]) -> u64Expand description
The pixels rects cover, each counted once however many rectangles overlap it.
Splits the plane at every left and right edge; inside each vertical slab the covering rectangles are runs of rows, whose union is a sort and one pass.