uterm: video: add support for immediate buffer-swaps
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 13 Jan 2013 15:06:00 +0000 (16:06 +0100)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 13 Jan 2013 15:06:00 +0000 (16:06 +0100)
commit80e5a3b4a68c3e6757b61b49413ee2788adcce0e
tree9256cd68dada119b34af16547bbbbe508ae6e0b9
parentdf2d153e3991b7191aa54e90eb99e19eb6958e6b
uterm: video: add support for immediate buffer-swaps

Internally, we already support immediate buffer-swaps but this hasn't been
exported in the API. This patch adds an "immediate" argument that causes
the flip to be immediate and not synchronized with vertical-blanks.

Please note that this might block if there is a pending page-flip.
However, this is mostly a delay of 16ms so we can ignore it as this is
acceptable if you want immediate swaps while there is still a
pending-buffer.
You can listen for the UTERM_PAGE_FLIP event if you don't want this
behavior.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/kmscon_dummy.c
src/kmscon_terminal.c
src/uterm_fbdev_video.c
src/uterm_video.c
src/uterm_video.h
src/uterm_video_drm.c
src/uterm_video_dumb.c
src/uterm_video_internal.h
tests/test_output.c