Use zwp_linux_dmabuf_v1 interface to query supported formats
authorIason Paraskevopoulos <iason.paraskevopoulos@arm.com>
Wed, 3 Mar 2021 15:06:41 +0000 (15:06 +0000)
committerIason Paraskevopoulos <iason.paraskevopoulos@arm.com>
Tue, 30 Mar 2021 15:54:21 +0000 (16:54 +0100)
commit7c3a626118e6d99fd9871fef46c8e2c7ef1a83b1
treeb85721e941f2baba56f0070ed52faaadc1997de6
parentab41b59bbf36b0c351866d629b35e7558d6017da
Use zwp_linux_dmabuf_v1 interface to query supported formats

Adds functionality to query supported formats of a surface using the
Linux dmabuf extension (zwp_linux_dmabuf_v1).

Removes extern "C" before wayland headers includes.

Introduces Wayland object owners to remove the need of destroying
manually Wayland objects.

Change-Id: I60dc8562bac8746197fff8a0ae059d4edc58cd9a
Signed-off-by: Iason Paraskevopoulos <iason.paraskevopoulos@arm.com>
CMakeLists.txt
wsi/wayland/surface_properties.cpp
wsi/wayland/swapchain.cpp
wsi/wayland/swapchain.hpp
wsi/wayland/wl_helpers.cpp [moved from wsi/wayland/swapchain_wl_helpers.cpp with 59% similarity]
wsi/wayland/wl_helpers.hpp [moved from wsi/wayland/swapchain_wl_helpers.hpp with 68% similarity]
wsi/wayland/wl_object_owner.hpp [new file with mode: 0644]