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:
Simon Hausmann 2021-10-30 13:02:45 +02:00
parent db64d30a29
commit d57edfbb7c
6 changed files with 9 additions and 14 deletions

View file

@ -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>>>,
) {
}