ecore_drm2: simplify API to get latest FB
authorDerek Foreman <derekf@osg.samsung.com>
Thu, 8 Sep 2016 16:40:11 +0000 (11:40 -0500)
committerDerek Foreman <derekf@osg.samsung.com>
Thu, 8 Sep 2016 18:55:25 +0000 (13:55 -0500)
commitcc29a25c47bf12b4a3fc94396cc5c39e6d3e7739
tree12fd2b9843fc9a20c3fb509ea7de766c3397bd2a
parentace55231a3b92fd46ae3be9ef6b0379538fe7927
ecore_drm2: simplify API to get latest FB

What we've always wanted when getting the "current" FB is to get
the most recently submit one - this may be current, next, or pending.

Replace ecore_drm2_output_current_fb_get() with a function that gets the
most recent one - ecore_drm2_output_latest_fb_get().  Now callers don't
have to check the next buffer themselves first, and we don't have to
add an API for pending.
src/lib/ecore_drm2/Ecore_Drm2.h
src/lib/ecore_drm2/ecore_drm2_outputs.c