mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-30 23:27:22 +00:00
Simplify free_graphics_resources API in the backend
Take an iterator reference instead of a slice, so that we can change the call sites in the future.
This commit is contained in:
parent
db64d30a29
commit
d57edfbb7c
6 changed files with 9 additions and 14 deletions
|
@ -19,7 +19,6 @@ You should use the `sixtyfps` crate instead.
|
|||
use image::GenericImageView;
|
||||
use sixtyfps_corelib::component::ComponentRc;
|
||||
use sixtyfps_corelib::graphics::{Image, Point, Size};
|
||||
use sixtyfps_corelib::slice::Slice;
|
||||
use sixtyfps_corelib::window::{PlatformWindow, Window};
|
||||
use sixtyfps_corelib::ImageInner;
|
||||
use std::path::Path;
|
||||
|
@ -114,7 +113,7 @@ impl PlatformWindow for TestingWindow {
|
|||
|
||||
fn free_graphics_resources<'a>(
|
||||
&self,
|
||||
_items: &Slice<'a, Pin<sixtyfps_corelib::items::ItemRef<'a>>>,
|
||||
_items: &mut dyn Iterator<Item = &'a Pin<sixtyfps_corelib::items::ItemRef<'a>>>,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue