diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2013-01-13 16:06:00 +0100 |
---|---|---|
committer | David Herrmann <dh.herrmann@googlemail.com> | 2013-01-13 16:06:00 +0100 |
commit | 80e5a3b4a68c3e6757b61b49413ee2788adcce0e (patch) | |
tree | 9256cd68dada119b34af16547bbbbe508ae6e0b9 /tests | |
parent | df2d153e3991b7191aa54e90eb99e19eb6958e6b (diff) |
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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_output.c b/tests/test_output.c index b087886..ff523cf 100644 --- a/tests/test_output.c +++ b/tests/test_output.c @@ -97,7 +97,7 @@ static int blit_outputs(struct uterm_video *video) continue; } - ret = uterm_display_swap(iter); + ret = uterm_display_swap(iter, true); if (ret) { log_err("Cannot swap screen: %d", ret); continue; |