mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 22:11:04 +01:00
Add API to recycle a rendered image back to the rasterizer. The draw object keeps the image and its buffer for reuse by the next render() call. After the first render+recycle cycle, render() does zero mallocs (the image struct and pixel buffer are both reused). Also switch hb_raster_image_t to use hb_vector_t<uint8_t> for its pixel buffer so resize tracking is automatic. Update hb-raster-all benchmark to use recycling. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>