mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
![]() This requires the image size query to be window independent and go through the backend instead. This implies minor changes for the Qt backend and bigger ones for the GL backend: * There exists now a thread-local IMAGE_CACHE, which is used by the backend's image_size() function as well as by the renderer for loading CPU side images. * The image remain as decoded images in there (including SVG tree) and the window now has a texture_cache, which holds CachedImage with ImageData::Texture. * Rendering an image item therefore fetches the CPU side image, calls upload_to_gpu() on it, which creates a new Rc<CachedImage> and that's stored in the texture_cache. * The texture cache continues to be pruned when hiding the window. |
||
---|---|---|
.. | ||
build.rs | ||
Cargo.toml | ||
key_generated.rs | ||
lib.rs | ||
qt_window.rs | ||
widgets.rs |