summaryrefslogtreecommitdiffstats
path: root/winit/src/application.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-11-11 06:07:31 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-11-11 06:07:31 +0100
commit860a6923bbed57a21ce4b2cae331f6a3a51ca3fe (patch)
treeb179c26278ef95b6aa2520c1cef69b5fa264ebcf /winit/src/application.rs
parentd4d14b68f47e9527554a728ebbba9b840832626a (diff)
downloadiced-860a6923bbed57a21ce4b2cae331f6a3a51ca3fe.tar.gz
iced-860a6923bbed57a21ce4b2cae331f6a3a51ca3fe.tar.bz2
iced-860a6923bbed57a21ce4b2cae331f6a3a51ca3fe.zip
Split text measurements cache from rendering cache
This speeds up layouting in the most common scenario considerably! :tada:
Diffstat (limited to 'winit/src/application.rs')
-rw-r--r--winit/src/application.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/winit/src/application.rs b/winit/src/application.rs
index fdd659d9..331bafa0 100644
--- a/winit/src/application.rs
+++ b/winit/src/application.rs
@@ -61,7 +61,7 @@ pub trait Application {
let user_interface = UserInterface::build(
document(&mut self, size, &mut debug),
Cache::default(),
- &renderer,
+ &mut renderer,
);
debug.layout_finished();
@@ -87,7 +87,7 @@ pub trait Application {
let mut user_interface = UserInterface::build(
document(&mut self, size, &mut debug),
cache.take().unwrap(),
- &renderer,
+ &mut renderer,
);
debug.layout_finished();
@@ -130,7 +130,7 @@ pub trait Application {
let user_interface = UserInterface::build(
document(&mut self, size, &mut debug),
temp_cache,
- &renderer,
+ &mut renderer,
);
debug.layout_finished();