wl_buffer: add constructor
This commit is contained in:
parent
3ef408b5b4
commit
ca5cc67fa2
5 changed files with 65 additions and 70 deletions
|
|
@ -166,13 +166,7 @@ impl WlDrmRequestHandler for WlDrm {
|
|||
}
|
||||
}
|
||||
let img = ctx.dmabuf_img(&dmabuf)?;
|
||||
let buffer = Rc::new(WlBuffer::new_dmabuf(
|
||||
req.id,
|
||||
&self.client,
|
||||
format,
|
||||
dmabuf,
|
||||
&img,
|
||||
));
|
||||
let buffer = WlBuffer::new_dmabuf(req.id, &self.client, format, dmabuf, &img);
|
||||
track!(self.client, buffer);
|
||||
self.client.add_client_obj(&buffer)?;
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue