slint/internal/core/graphics
Simon Hausmann 91d0747d06 Make use of the ItemCache more robust when the window scale factor changes
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.
2023-08-16 16:37:07 +02:00
..
image Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
bitmapfont.rs Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
boxshadowcache.rs Make use of the ItemCache more robust when the window scale factor changes 2023-08-16 16:37:07 +02:00
brush.rs Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
color.rs Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
image.rs Add support for flipping borrowed OpenGL textures vertically (#3205) 2023-08-02 13:11:13 +02:00
path.rs Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
rendering_metrics_collector.rs Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00