1
0
Fork 0
forked from wry/wry

autocommit 2022-02-06 03:46:03 CET

This commit is contained in:
Julian Orth 2022-02-06 03:46:03 +01:00
parent 59ce74681a
commit c92346324b
60 changed files with 1292 additions and 1958 deletions

View file

@ -10,14 +10,9 @@ use crate::utils::buffd::MsgParser;
use crate::utils::clonecell::CloneCell;
use std::cell::Cell;
use std::rc::Rc;
use crate::wire::wl_buffer::*;
pub use types::*;
const DESTROY: u32 = 0;
const RELEASE: u32 = 0;
id!(WlBufferId);
pub enum WlBufferStorage {
Shm { mem: ClientMemOffset, stride: i32 },
Dmabuf(Rc<Image>),
@ -122,8 +117,8 @@ impl WlBuffer {
Ok(())
}
pub fn release(self: &Rc<Self>) -> DynEventFormatter {
Box::new(Release { obj: self.clone() })
pub fn release(&self) -> DynEventFormatter {
Box::new(Release { self_id: self.id })
}
}