[PATCH weston] simple-shm: honour wl_buffer.release

Pekka Paalanen ppaalanen at gmail.com
Mon Nov 19 23:49:52 PST 2012


On Mon, 19 Nov 2012 15:56:23 -0500
Kristian Høgsberg <hoegsberg at gmail.com> wrote:

> On Mon, Nov 19, 2012 at 03:29:09PM +0200, Pekka Paalanen wrote:
> > Change simple-shm to properly process the wl_buffer.release event, and
> > not reuse a buffer until it is released by the server, as specified in
> > the protocol.
> > 
> > In case the server has not released the buffer, but signals that it has
> > been shown (frame callback), allocate a second buffer. Simple-shm will
> > now automatically do double-buffering if needed.
> 
> Looks fine, but simple-shm is less and less simple.

Yes, I know, but this is really required by the core protocol. Not
just nice to have, nor optional.


Thanks,
pq


More information about the wayland-devel mailing list