Decouple the image Handle type from the iced_native implementation

This commit is contained in:
Olivier Pinon 2021-12-10 20:15:27 +01:00
parent 8cbba94458
commit a7bcd65bb8
4 changed files with 37 additions and 24 deletions

View file

@ -13,6 +13,8 @@ impl<B> image::Renderer for Renderer<B>
where
B: Backend + backend::Image,
{
type Handle = image::Handle;
fn dimensions(&self, handle: &image::Handle) -> (u32, u32) {
self.backend().dimensions(handle)
}