mesa/src/egl
Tomasz Figa 92799eee93 egl/android: Stop leaking DRI images
Current implementation of the DRI image loader does not free the images
created in get_back_bo() and so leaks memory. Moreover, it creates a new
image every time the DRI driver queries for buffers, even if the backing
native buffer has not changed. leaking memory again.

This patch adds missing call to destroyImage() in droid_enqueue_buffer()
and a check if image is already created to get_back_bo() to fix the
above.

Cc: "11.2 12.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Tomasz Figa <tfiga@chromium.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
(cherry picked from commit 9e1248d075)
2016-07-21 14:29:40 +01:00
..
docs egl: Mark EGL_MESA_screen_surface as obsolete. 2010-08-31 15:25:22 +08:00
drivers egl/android: Stop leaking DRI images 2016-07-21 14:29:40 +01:00
main mesa_glinterop: remove mesa_glinterop typedefs 2016-05-30 17:53:44 +01:00
wayland egl/wayland: do not wrap header inclusion in extern "C" 2016-03-09 17:16:50 +00:00
Android.mk Android: Move setting DEFAULT_DRIVER_DIR to shared location 2016-05-23 12:07:45 +01:00
egl-symbols-check egl: fix make check broken by interop support 2016-04-26 21:37:07 +02:00
Makefile.am configure.ac: Add support for Android builds 2016-05-23 13:23:39 +01:00
Makefile.sources automake: rework the EGL build 2015-07-22 16:35:27 +01:00
SConscript egl: Fix missing Haiku include path 2015-09-28 13:58:25 -04:00