diff options
author | 2023-03-07 03:47:49 +0100 | |
---|---|---|
committer | 2023-03-07 03:47:49 +0100 | |
commit | 3a26baa564524b0f25c5cb180b592c8b004b68a9 (patch) | |
tree | c6a51e9116e7f29552130778fe071efa9b1d1262 /wgpu/src/image/atlas/entry.rs | |
parent | 9b4bcd287a7f4822314e158990d1dc023d5aab51 (diff) | |
download | iced-3a26baa564524b0f25c5cb180b592c8b004b68a9.tar.gz iced-3a26baa564524b0f25c5cb180b592c8b004b68a9.tar.bz2 iced-3a26baa564524b0f25c5cb180b592c8b004b68a9.zip |
Remove `image` abstractions in `iced_graphics`
Diffstat (limited to 'wgpu/src/image/atlas/entry.rs')
-rw-r--r-- | wgpu/src/image/atlas/entry.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wgpu/src/image/atlas/entry.rs b/wgpu/src/image/atlas/entry.rs index 4b06bd95..7e4c92a2 100644 --- a/wgpu/src/image/atlas/entry.rs +++ b/wgpu/src/image/atlas/entry.rs @@ -1,5 +1,4 @@ use crate::core::Size; -use crate::graphics::image; use crate::image::atlas; #[derive(Debug)] @@ -11,8 +10,9 @@ pub enum Entry { }, } -impl image::storage::Entry for Entry { - fn size(&self) -> Size<u32> { +impl Entry { + #[cfg(feature = "image")] + pub fn size(&self) -> Size<u32> { match self { Entry::Contiguous(allocation) => allocation.size(), Entry::Fragmented { size, .. } => *size, |