wayland_shm: Fix dmabuf fallback to shm
authorDerek Foreman <derekf@osg.samsung.com>
Wed, 27 Apr 2016 16:41:13 +0000 (11:41 -0500)
committerDerek Foreman <derekf@osg.samsung.com>
Tue, 3 May 2016 19:24:45 +0000 (14:24 -0500)
commit4f6e7a8ab39bbac0c780ae3c8dadfe17e804674e
tree66d994cadee63b61f0db1c81efa00d11bfa639ac
parent6ef0fdfe2b53f2575499b91f59cfcf86d7879c47
wayland_shm: Fix dmabuf fallback to shm

The outbuf code should free the surface structure, not the dmabuf
abstraction or a use after free occurs on fallback.

Re-organize some code to make sure we don't rely on anything that may
have already been freed.

Add a wl_surface_commit() to keep the animation timer alive through
the fallback process.
src/modules/evas/engines/wayland_shm/evas_dmabuf.c
src/modules/evas/engines/wayland_shm/evas_outbuf.c