Re: [Mesa-dev] [PATCH 2/3] egl/android: Cancel any outstanding ANativeBuffer in surface destructor

2017-05-04 Thread Nicolas Boichat
On Thu, May 4, 2017 at 7:47 AM, Chad Versace wrote: > From: Chad Versace > > That is, call ANativeWindow::cancelBuffer in droid_destroy_surface(). > > This should prevent application deadlock when the app destroys the > EGLSurface after EGL has acquired a buffer from SurfaceFlinger > (ANativeWind

[Mesa-dev] [PATCH 2/3] egl/android: Cancel any outstanding ANativeBuffer in surface destructor

2017-05-03 Thread Chad Versace
From: Chad Versace That is, call ANativeWindow::cancelBuffer in droid_destroy_surface(). This should prevent application deadlock when the app destroys the EGLSurface after EGL has acquired a buffer from SurfaceFlinger (ANativeWindow::dequeueBuffer) but before EGL has released it (ANativeWindow: