diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-10-02 18:47:01 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2014-10-03 15:57:00 +0200 |
commit | 66695cc343647dcbf654fbb4b3f38bd1ee092a0d (patch) | |
tree | 49e1bc8014b99e0a7ad7aba32a6e1ff243d8d2ec /src/libsystemd-terminal/grdev.c | |
parent | 51cff8bdedbc283b2403ab4a688903d8b1f2fab5 (diff) |
terminal/grdev: allow arbitrary fb-age contexts
Instead of limiting fb-aging to 64bit integers, allow any arbitrary
context together with a release function to free it once the FB is
destroyed.
Diffstat (limited to 'src/libsystemd-terminal/grdev.c')
-rw-r--r-- | src/libsystemd-terminal/grdev.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/libsystemd-terminal/grdev.c b/src/libsystemd-terminal/grdev.c index a700a7316b..0c21eac551 100644 --- a/src/libsystemd-terminal/grdev.c +++ b/src/libsystemd-terminal/grdev.c @@ -393,28 +393,19 @@ const grdev_display_target *grdev_display_next_target(grdev_display *display, co return NULL; } -void grdev_display_flip_target(grdev_display *display, const grdev_display_target *target, uint64_t age) { +void grdev_display_flip_target(grdev_display *display, const grdev_display_target *target) { grdev_display_cache *cache; - size_t i; assert(display); assert(!display->modified); assert(display->enabled); assert(target); - assert(target->back); cache = container_of(target, grdev_display_cache, target); assert(cache->pipe); assert(cache->pipe->tile->display == display); - /* reset age of all FB on overflow */ - if (age < target->back->age) - for (i = 0; i < cache->pipe->max_fbs; ++i) - if (cache->pipe->fbs[i]) - cache->pipe->fbs[i]->age = 0; - - ((grdev_fb*)target->back)->age = age; cache->pipe->flip = true; } |