compositor-drm: Refactor destroy drm_fb function
authorTomohito Esaki <etom@igel.co.jp>
Tue, 4 Apr 2017 16:54:24 +0000 (17:54 +0100)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 7 Apr 2017 09:45:12 +0000 (12:45 +0300)
commit576f42effe1af94f1bf546b1b91ef85b309d0945
tree6ead89adae3754d18f1e9858c4610795952f6206
parent0b70fa4b56068879efc6e388bbffe2a9731a366e
compositor-drm: Refactor destroy drm_fb function

The drm_fb destroy callback to mostly the same thing regardless of
whether the buffer is a dumb buffer or gbm buffer. This patch refactors
the common parts into a new function that can be called for both cases.

[daniels: Rebased on top of fb->fd changes, cosmetic changes.]

Signed-off-by: Tomohito Esaki <etom@igel.co.jp>
Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
libweston/compositor-drm.c