summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2018-06-15 13:18:30 -0500
committerDerek Foreman <derekf@osg.samsung.com>2018-06-15 13:18:30 -0500
commita310667bec105f71ba221fc7f5a36d1f095a4203 (patch)
treef1a6f2494ee7ed530a88a26a63e5294a79c8f437 /src/modules/evas/engines
parent551101b4cd74debcaa906fb73f7c60b7a26b550d (diff)
ecore_wl2: Add a purge option to surface flush
Summary: We need to be able to forcibly destroy all surface buffers to make session recovery work safely for software rendering. @betabreak Depends on D6278 Reviewers: devilhorns, zmike Reviewed By: zmike Subscribers: cedric, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6279
Diffstat (limited to 'src/modules/evas/engines')
-rw-r--r--src/modules/evas/engines/wayland_shm/evas_engine.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/evas/engines/wayland_shm/evas_engine.c b/src/modules/evas/engines/wayland_shm/evas_engine.c
index 9e332b5c92..4f2aea5930 100644
--- a/src/modules/evas/engines/wayland_shm/evas_engine.c
+++ b/src/modules/evas/engines/wayland_shm/evas_engine.c
@@ -134,8 +134,10 @@ eng_output_update(void *engine, void *data, void *info, unsigned int w, unsigned
134 ewd = ecore_wl2_window_display_get(einfo->info.wl2_win); 134 ewd = ecore_wl2_window_display_get(einfo->info.wl2_win);
135 if (ob->ewd != ewd) 135 if (ob->ewd != ewd)
136 { 136 {
137 /* We don't use a purging flush because we don't want to
138 * delete a buffer currently being displayed */
137 if (ewd) 139 if (ewd)
138 ecore_wl2_surface_flush(ob->surface); 140 ecore_wl2_surface_flush(ob->surface, EINA_FALSE);
139 re->generic.ob->ewd = ewd; 141 re->generic.ob->ewd = ewd;
140 } 142 }
141 143