Add a shm buffer sharing mechanism

This commit is contained in:
Kristian Høgsberg 2010-10-06 21:17:40 -04:00
parent 98ffc93b95
commit 3d5bae0700
8 changed files with 286 additions and 46 deletions

6
TODO
View file

@ -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 */