Re: [PATCH wayland] shm: Add wl_shm_buffer get/put functions

2015-10-05 Thread Derek Foreman
On 04/10/15 01:21 PM, Bill Spitzak wrote: > On 10/04/2015 08:34 AM, Giulio Camuffo wrote: >> 2015-07-18 0:30 GMT+03:00 Derek Foreman : >>> Sometimes the compositor wants to make sure a shm pool doesn't disappear >>> out from under it. >>> >>> For example, in Enlightenment, rendering happens in a se

Re: [PATCH wayland] shm: Add wl_shm_buffer get/put functions

2015-10-05 Thread Derek Foreman
On 04/10/15 10:49 AM, Jasper St. Pierre wrote: > I imagine get/put is named after the kernel style. I typically see > ref/unref for userspace names (or ref/destroy, but nobody likes that). Yup, sorry. > On Sun, Oct 4, 2015 at 8:34 AM, Giulio Camuffo > wrote: >> 2015-07-18 0:30 GMT+03:00 Derek F

Re: [PATCH wayland] shm: Add wl_shm_buffer get/put functions

2015-10-04 Thread Jasper St. Pierre
I imagine it's sampling from shared memory owned by the client during its own rendering. On Sun, Oct 4, 2015 at 11:21 AM, Bill Spitzak wrote: > On 10/04/2015 08:34 AM, Giulio Camuffo wrote: >> >> 2015-07-18 0:30 GMT+03:00 Derek Foreman : >>> >>> Sometimes the compositor wants to make sure a shm p

Re: [PATCH wayland] shm: Add wl_shm_buffer get/put functions

2015-10-04 Thread Bill Spitzak
On 10/04/2015 08:34 AM, Giulio Camuffo wrote: 2015-07-18 0:30 GMT+03:00 Derek Foreman : Sometimes the compositor wants to make sure a shm pool doesn't disappear out from under it. For example, in Enlightenment, rendering happens in a separate thread while the main thread can still dispatch even

Re: [PATCH wayland] shm: Add wl_shm_buffer get/put functions

2015-10-04 Thread Jasper St. Pierre
I imagine get/put is named after the kernel style. I typically see ref/unref for userspace names (or ref/destroy, but nobody likes that). On Sun, Oct 4, 2015 at 8:34 AM, Giulio Camuffo wrote: > 2015-07-18 0:30 GMT+03:00 Derek Foreman : >> Sometimes the compositor wants to make sure a shm pool doe

Re: [PATCH wayland] shm: Add wl_shm_buffer get/put functions

2015-10-04 Thread Giulio Camuffo
2015-07-18 0:30 GMT+03:00 Derek Foreman : > Sometimes the compositor wants to make sure a shm pool doesn't disappear > out from under it. > > For example, in Enlightenment, rendering happens in a separate thread > while the main thread can still dispatch events. If a client is destroyed > during r

[PATCH wayland] shm: Add wl_shm_buffer get/put functions

2015-07-17 Thread Derek Foreman
Sometimes the compositor wants to make sure a shm pool doesn't disappear out from under it. For example, in Enlightenment, rendering happens in a separate thread while the main thread can still dispatch events. If a client is destroyed during rendering, all its resources are cleaned up and its sh