1
0
Fork 0
forked from wry/wry

linux-dmabuf: intercept udmabuf buffers

This commit is contained in:
Julian Orth 2025-10-01 17:34:24 +02:00
parent 0570669af2
commit 410281b13e
5 changed files with 131 additions and 32 deletions

View file

@ -40,6 +40,7 @@ impl WlShmPool {
false,
Some(client),
Some(&client.state.cpu_worker),
false,
)?)),
fd,
tracker: Default::default(),
@ -68,6 +69,7 @@ impl WlShmPoolRequestHandler for WlShmPool {
req.stride,
format,
&self.mem.get(),
None,
)?);
track!(self.client, buffer);
self.client.add_client_obj(&buffer)?;
@ -92,6 +94,7 @@ impl WlShmPoolRequestHandler for WlShmPool {
false,
Some(&self.client),
Some(&self.client.state.cpu_worker),
false,
)?));
Ok(())
}