Re: [PATCH weston 2/8] compositor: add and export weston_buffer_reference()

2012-11-28 Thread Pekka Paalanen
On Wed, 28 Nov 2012 09:49:18 -0500 Kristian Høgsberg wrote: > On Fri, Nov 23, 2012 at 03:56:51PM +0200, Pekka Paalanen wrote: > > The wl_buffer reference counting API has been inconsistent. You would > > manually increment the refcount and register a destroy listener, as > > opposed to calling we

Re: [PATCH weston 2/8] compositor: add and export weston_buffer_reference()

2012-11-28 Thread Kristian Høgsberg
On Fri, Nov 23, 2012 at 03:56:51PM +0200, Pekka Paalanen wrote: > The wl_buffer reference counting API has been inconsistent. You would > manually increment the refcount and register a destroy listener, as > opposed to calling weston_buffer_post_release(), which internally > decremented the refcoun

[PATCH weston 2/8] compositor: add and export weston_buffer_reference()

2012-11-23 Thread Pekka Paalanen
The wl_buffer reference counting API has been inconsistent. You would manually increment the refcount and register a destroy listener, as opposed to calling weston_buffer_post_release(), which internally decremented the refcount, and then removing a list item. Replace both cases with a single func