mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-31 07:11:27 -04:00
Add a shm buffer sharing mechanism
This commit is contained in:
parent
98ffc93b95
commit
3d5bae0700
8 changed files with 286 additions and 46 deletions
6
TODO
6
TODO
|
|
@ -17,13 +17,15 @@ Core wayland protocol
|
|||
|
||||
buffer = drm.create_buffer(); /* buffer with stuff in it */
|
||||
|
||||
cache.upload(buffer, x, y, width, height, int key)
|
||||
cache.upload(buffer, x, y, width, height, int hash)
|
||||
|
||||
drm.buffer: id, name, stride etc /* event to announce cache buffer */
|
||||
|
||||
cache.image: key, buffer, x, y, stride /* event to announce
|
||||
cache.image: hash, buffer, x, y, stride /* event to announce
|
||||
* location in cache */
|
||||
|
||||
cache.reject: hash /* no upload for you! */
|
||||
|
||||
cache.retire: buffer /* cache has stopped using buffer, please
|
||||
* reupload whatever you had in that buffer */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue