mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02:00
Cache the display list commands produced by each PaintableBox's paint() on a per-phase basis. On subsequent display list rebuilds, if a paintable's cache is still valid, replay the recorded commands directly — skipping paint() and all the property resolution it entails. Besides saving time on property resolution, this also enables Skia to reuse path tessellation results across frames — e.g. border paths are preserved in the cache and don't need to be re-tessellated on every repaint.
5.9 KiB
5.9 KiB