1
0
Fork 0
forked from wry/wry

surface: use async uploads for shm buffers

This commit is contained in:
Julian Orth 2024-09-07 16:52:03 +02:00
parent 80310f4c0d
commit d40e605f66
8 changed files with 250 additions and 73 deletions

View file

@ -215,7 +215,6 @@ pub struct State {
pub enable_ei_acceptor: Cell<bool>,
pub ei_clients: EiClients,
pub slow_ei_clients: AsyncQueue<Rc<EiClient>>,
#[expect(dead_code)]
pub cpu_worker: Rc<CpuWorker>,
}
@ -485,7 +484,7 @@ impl State {
updated_buffers.insert(buffer.buffer.id);
buffer.buffer.handle_gfx_context_change(Some(surface));
} else {
surface.shm_texture.take();
surface.reset_shm_textures();
}
}
for buffer in client.data.objects.buffers.lock().values() {