Blink PaintControllerPersistentData: The Memory of the Paint Cycle
Blink2863 Huhti

Blink PaintControllerPersistentData: The Memory of the Paint Cycle

The provided sources describe PaintControllerPersistentData, a long-lived container in the Blink rendering engine that stores painting results across document lifecycles. This object acts as a persistent cache, holding the previous PaintArtifact and a subsequence tree to allow the engine to reuse existing work instead of repainting from scratch. While the active logic for matching and reconciling changes resides in the short-lived, stack-allocated PaintController, this persistent data provides the essential baseline for comparison. It is lazily managed by the LocalFrameView and serves as the bridge between the paint phase and the compositor, ensuring efficient updates to the user interface. By decoupling transient paint-cycle state from durable cache data, Chromium optimizes both memory usage and rendering performance.


Jaksot(473)