Late-Bound Raster Color Parameters in Chromium
Blink28626 Maalis

Late-Bound Raster Color Parameters in Chromium

These sources describe a new optimization for the Chromium rendering engine that allows certain colors to be updated without triggering a full repaint of the display list. By treating colors as late-bound raster parameters rather than static data, the system can inject specific color values at the final moment of drawing. This architecture mirrors the existing "raster-inducing scroll" path, using a separate map of color IDs to keep the recorded paint instructions stable. While this method still requires re-rasterizing tiles, it significantly reduces overhead by bypassing the expensive process of rebuilding display items and layers. The proposed design utilizes the ScopedRasterFlags helper to swap colors during both software and GPU rendering, ensuring consistency across different hardware paths. Ultimately, this creates a "no-repaint" fast path for elements like text and vector shapes when their theme or style changes.

Jaksot(462)