summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2018-06-15 13:18:39 -0500
committerDerek Foreman <derekf@osg.samsung.com>2018-06-15 13:18:39 -0500
commitb8d6923782468af22583db99a86cc03e500e3af8 (patch)
tree537dff46e8098a9146254b1b2b1f67e9fa16db84 /src/lib/ecore_wl2
parenta310667bec105f71ba221fc7f5a36d1f095a4203 (diff)
ecore_wl2: Handle purging flush in dmabuf module
Summary: Allow destroying all buffers, even attached ones, in the dmabuf surface module. Depends on D6279 Reviewers: devilhorns, zmike Reviewed By: zmike Subscribers: cedric, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6280
Diffstat (limited to 'src/lib/ecore_wl2')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_surface_module_dmabuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_surface_module_dmabuf.c b/src/lib/ecore_wl2/ecore_wl2_surface_module_dmabuf.c
index 04e513b576..02e77f97c5 100644
--- a/src/lib/ecore_wl2/ecore_wl2_surface_module_dmabuf.c
+++ b/src/lib/ecore_wl2/ecore_wl2_surface_module_dmabuf.c
@@ -217,7 +217,7 @@ _evas_dmabuf_surface_destroy(Ecore_Wl2_Surface *s EINA_UNUSED, void *priv_data)
217} 217}
218 218
219static void 219static void
220_evas_dmabuf_surface_flush(Ecore_Wl2_Surface *surface EINA_UNUSED, void *priv_data, Eina_Bool purge EINA_UNUSED) 220_evas_dmabuf_surface_flush(Ecore_Wl2_Surface *surface EINA_UNUSED, void *priv_data, Eina_Bool purge)
221{ 221{
222 Ecore_Wl2_Dmabuf_Private *p; 222 Ecore_Wl2_Dmabuf_Private *p;
223 Ecore_Wl2_Buffer *b; 223 Ecore_Wl2_Buffer *b;
@@ -226,7 +226,7 @@ _evas_dmabuf_surface_flush(Ecore_Wl2_Surface *surface EINA_UNUSED, void *priv_da
226 226
227 EINA_LIST_FREE(p->buffers, b) 227 EINA_LIST_FREE(p->buffers, b)
228 { 228 {
229 if (!ecore_wl2_buffer_busy_get(b)) 229 if (purge || !ecore_wl2_buffer_busy_get(b))
230 { 230 {
231 if (p->current == b) 231 if (p->current == b)
232 p->current = NULL; 232 p->current = NULL;