egl_display: improve support detection
commit90a6084eaa9611fdf44c91e6b48a24f2a4c46cd9
authorRomain Vimont <rom1v@videolabs.io>
Mon, 22 Mar 2021 15:06:24 +0000 (22 16:06 +0100)
committerAlexandre Janniaux <ajanni@videolabs.io>
Tue, 30 Mar 2021 09:37:34 +0000 (30 11:37 +0200)
tree8d0dee60694accbd94af3da22a4b91393a1e37e3
parentab9699749c6f862529c29ee5551f2b206ef520af
egl_display: improve support detection

A module egl_display must only provide EGL displays where eglTerminate()
can be called, even if other modules are using EGL (typically because it
is internally refcounted).

This is always the case on Android, so egl_display was initially only
enabled on Android:
https://android.googlesource.com/platform/frameworks/native/+/master/opengl/libs/EGL/egl_display.cpp

But this may also be the case on other platforms which support
EGL_KHR_display_reference:
https://www.khronos.org/registry/EGL/extensions/KHR/EGL_KHR_display_reference.txt

Co-authored-by: Alexandre Janniaux <ajanni@videolabs.io>
Signed-off-by: Alexandre Janniaux <ajanni@videolabs.io>
modules/video_output/opengl/Makefile.am
modules/video_output/opengl/egl_display_generic.c