evas-wayland-shm: Improve next buffer selection algorithm
authorChris Michael <cp.michael@samsung.com>
Wed, 26 Oct 2016 15:53:49 +0000 (11:53 -0400)
committerChris Michael <cp.michael@samsung.com>
Wed, 26 Oct 2016 15:53:49 +0000 (11:53 -0400)
commitf3d1b2d7da768a35837564a3ad2f2300f28d100c
tree76bfab63169b86c1449472fbe7b134dc75087f9d
parentbb2a55ead6979781a42f562180b431d8fc61be47
evas-wayland-shm: Improve next buffer selection algorithm

When triple buffering it's possible that we'll only need two buffers at
a time for long durations.  When we finally call upon a third buffer it
hasn't been used recently enough to do a partial redraw.
By picking the oldest available buffer when multiple buffers are free we
can increase the likelihood of doing partial redraws.

Based on 79409757c6493738c21015708a1ba5178942ad94 by Derek Foreman.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/modules/evas/engines/wayland_shm/evas_shm.c