mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-03 07:04:34 +00:00
![]() Previously, all the closures passed to `get_or_update_cache_entry` would have to make sure that the scale factor is an included dependency. This is error prone, as the parent commits show. Instead, this change adds a property tracker to each ItemCache and lets the renderer clear the cache if the scale factor changes. Strictly speaking this may delete too many entries from the cache (not all depend on the scale factor), but on the other hand this doesn't happen very often so we trade robustness over efficiency. |
||
---|---|---|
.. | ||
image | ||
bitmapfont.rs | ||
boxshadowcache.rs | ||
brush.rs | ||
color.rs | ||
image.rs | ||
path.rs | ||
rendering_metrics_collector.rs |