evas-wayland-shm: Fix issue of destroying & recreating wl_surfaces on hide
authorChris Michael <cp.michael@samsung.com>
Fri, 2 Dec 2016 18:24:42 +0000 (13:24 -0500)
committerChris Michael <cp.michael@samsung.com>
Fri, 2 Dec 2016 19:25:10 +0000 (14:25 -0500)
commit9492ee21dfa642123043da5d5ef7954e886b0f9c
treeff5c937458453fe08cf3118c1b4f8c7b892aa11a
parent725e43954528f88de4369f8d4515173c47d660b1
evas-wayland-shm: Fix issue of destroying & recreating wl_surfaces on hide

When a canvas gets hidden, we don't need to destroy & recreate the
wl_surface. We can simply attach a NULL wl_buffer to the surface which
achieves the same result. This saves us from having to always destroy
& recreate surfaces when we hide/show.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/modules/evas/engines/wayland_shm/evas_dmabuf.c
src/modules/evas/engines/wayland_shm/evas_engine.h
src/modules/evas/engines/wayland_shm/evas_outbuf.c
src/modules/evas/engines/wayland_shm/evas_shm.c