Revert "fix(text): don't reload cache every redraw"
This reverts commit 590e093086.
This commit is contained in:
parent
590e093086
commit
ebb3b125bf
2 changed files with 4 additions and 12 deletions
|
|
@ -308,7 +308,6 @@ pub struct State {
|
|||
prepare_layer: usize,
|
||||
cache: BufferCache,
|
||||
storage: Storage,
|
||||
swash_cache: cryoglyph::SwashCache,
|
||||
}
|
||||
|
||||
impl State {
|
||||
|
|
@ -353,7 +352,6 @@ impl State {
|
|||
renderer,
|
||||
&mut atlas,
|
||||
&mut self.cache,
|
||||
&mut self.swash_cache,
|
||||
text,
|
||||
layer_bounds * layer_transformation,
|
||||
layer_transformation * *transformation,
|
||||
|
|
@ -450,7 +448,6 @@ fn prepare(
|
|||
renderer: &mut cryoglyph::TextRenderer,
|
||||
atlas: &mut cryoglyph::TextAtlas,
|
||||
buffer_cache: &mut BufferCache,
|
||||
swash_cache: &mut cryoglyph::SwashCache,
|
||||
sections: &[Text],
|
||||
layer_bounds: Rectangle,
|
||||
layer_transformation: Transformation,
|
||||
|
|
@ -646,6 +643,6 @@ fn prepare(
|
|||
atlas,
|
||||
viewport,
|
||||
text_areas,
|
||||
swash_cache,
|
||||
&mut cryoglyph::SwashCache::new(),
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue