Module damage
Expand description
Damage in device pixels: the pixels a list of rectangles covers, how a long list merges into a few, and where a relayout moved widgets.
Functionsยง
- coalesce_
damage rectswithout the ones another contains, merged down to at mostlimitrectangles when there are more. Each merge joins the pair whose union adds the least area, so a caret blinking at one place stays one small rectangle however many frames repeated it. Merging only ever repaints more than the damage, which is correct; it never loses a pixel.- coalesce_
regions - Merge only overlap/touching damage whose bounding union costs no more pixels than the independent passes. The cap bounds the repeated-pair scan while preserving far-apart scrollbars and overlays.
- damage_
area - The pixels
rectscover, each counted once however many rectangles overlap it. - pixel_
rect - The device pixels
recttouches inside awidthxheighttarget, rounded out;Nonewhen that is empty. - without_
contained rectswithout the ones another contains, in their original order; of equal ones the first stays.