1
0
Fork 0
forked from wry/wry

Repair animation integration paths

This commit is contained in:
atagen 2026-05-22 09:16:51 +10:00
parent 31c289f628
commit 0fefe814c3
9 changed files with 229 additions and 35 deletions

View file

@ -310,19 +310,6 @@ impl WlBuffer {
}
}
pub fn get_stable_texture(&self) -> Option<Rc<dyn GfxTexture>> {
match &*self.storage.borrow() {
None => None,
Some(s) => match s {
WlBufferStorage::Shm {
dmabuf_buffer_params,
..
} => dmabuf_buffer_params.tex.clone(),
WlBufferStorage::Dmabuf { tex, .. } => tex.clone(),
},
}
}
pub fn update_texture_or_log(&self, surface: &WlSurface, sync_shm: bool) {
if let Err(e) = self.update_texture(surface, sync_shm) {
log::warn!("Could not update texture: {}", ErrorFmt(e));