Try to receive from worker in image::cache::trim
This commit is contained in:
parent
951f3a5b2b
commit
f0d0d3d114
1 changed files with 7 additions and 4 deletions
|
|
@ -292,10 +292,13 @@ impl Cache {
|
|||
|
||||
pub fn trim(&mut self) {
|
||||
#[cfg(feature = "image")]
|
||||
self.raster.cache.trim(&mut self.atlas, |_bind_group| {
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
self.worker.drop(_bind_group);
|
||||
});
|
||||
{
|
||||
self.receive();
|
||||
self.raster.cache.trim(&mut self.atlas, |_bind_group| {
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
self.worker.drop(_bind_group);
|
||||
});
|
||||
}
|
||||
|
||||
#[cfg(feature = "svg")]
|
||||
self.vector.trim(&mut self.atlas); // TODO: Concurrency
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue