1
0
Fork 0
forked from wry/wry

wl_buffer: add constructor

This commit is contained in:
Julian Orth 2026-02-10 18:51:23 +01:00
parent 3ef408b5b4
commit ca5cc67fa2
5 changed files with 65 additions and 70 deletions

View file

@ -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(())