Files
harfbuzz/test/api
Behdad Esfahbod 3bb72a7b4c [raster] Crop paint masks to their visible destination
A paint mask can extend far beyond its destination. Auto-sizing the
mask before imposing the raster dimension cap wastes pixel work and
can discard the visible part of an oversized outline altogether.

Intersect auto-sized masks with the destination clip box before the
dimension cap, and use those clipped dimensions for work accounting.
Widen the extent subtraction to cover disjoint bounds safely.

Add a regression for an oversized outline enclosing a small surface,
and update the sweep test to expect successful one-pixel clipping.
The standalone tall-edge sweep still verifies budget exhaustion.

Tested with the full configured Meson suite and the Bitcount Ink audit.
The worst measured 256 px pixel work falls from 6.84B to 152M units.

Assisted-by: Codex (OpenAI)
2026-11-12 18:11:03 -06:00
..
2025-04-06 18:08:50 -06:00
2026-07-30 19:02:25 -06:00
2026-07-31 04:31:26 +03:00
2025-04-05 22:37:10 -06:00
2020-01-15 13:36:01 -08:00