Skip to main content

damage_area

Function damage_area 

pub fn damage_area(rects: &[FineDamageRect]) -> u64
Expand 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.