slint/sixtyfps_runtime/rendering_backends/qt
Simon Hausmann 0fdb87cc69 Add Image::size()
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.
2021-06-20 11:18:28 +02:00
..
build.rs Display a warning if Qt is older than 5.15 2021-05-20 18:28:52 +02:00
Cargo.toml Fix wasm build when Qt is found in the host system 2021-04-27 15:43:05 +02:00
key_generated.rs Add support for Path.fill-rule 2021-02-10 14:08:32 +01:00
lib.rs Add Image::size() 2021-06-20 11:18:28 +02:00
qt_window.rs Add Image::size() 2021-06-20 11:18:28 +02:00
widgets.rs WIP layout: split vertical and horizontal cache 2021-06-16 15:14:07 +02:00