chiark / gitweb /
terminal/drm: provide pipe->target() callback
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 2 Oct 2014 15:59:26 +0000 (17:59 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Fri, 3 Oct 2014 13:57:00 +0000 (15:57 +0200)
commitaec3f44651998211d559b474bb830aad65680a62
tree633953f3668928f2403285d69ddd8945a737475e
parent6a15ce2b3eb852023d77787f96c6a4a72eb4d60d
terminal/drm: provide pipe->target() callback

Instead of looking for available back-buffers on each operation, set it to
NULL and wait for the next frame request. It will call back into the pipe
to request the back-buffer via ->target(), where we can do the same and
look for an available backbuffer.

This simplifies the code and avoids double lookups if we run short of
buffers.
src/libsystemd-terminal/grdev-drm.c
src/libsystemd-terminal/grdev.c