Draft new iced_graphics crate 🎉
This commit is contained in:
parent
d4743183d4
commit
05af8d00d4
100 changed files with 861 additions and 1755 deletions
|
|
@ -102,7 +102,9 @@ where
|
|||
hasher.finish()
|
||||
};
|
||||
|
||||
let layout = if hash == cache.hash && bounds == cache.bounds {
|
||||
let layout_is_cached = hash == cache.hash && bounds == cache.bounds;
|
||||
|
||||
let layout = if layout_is_cached {
|
||||
cache.layout
|
||||
} else {
|
||||
renderer.layout(&root, &layout::Limits::new(Size::ZERO, bounds))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue