According to ANDROID_get_native_client_buffer, EGL implementations must guarantee that the lifetime of an EGLClientBuffer returned by eglGetNativeClientBufferANDROID is at least as long as that of the EGLImage which is bound to. Do this by acquiring a reference to the underlying AHardwareBuffer for all ANativeWindowBuffers which are bound to an _EGLImage. Signed-off-by: David Stevens <stevensd@chromium.org> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7805>
17 lines
355 B
Meson
17 lines
355 B
Meson
if with_android_stub
|
|
stub_libs = []
|
|
|
|
foreach lib : ['backtrace', 'cutils', 'hardware', 'log', 'nativewindow', 'sync']
|
|
stub_libs += shared_library(
|
|
lib,
|
|
files(lib + '_stub.cpp'),
|
|
include_directories : inc_include,
|
|
install : false,
|
|
)
|
|
endforeach
|
|
|
|
dep_android = declare_dependency(
|
|
link_with : stub_libs,
|
|
)
|
|
endif
|