wayland_shm: Make dmabuf opt-in

Some weird bugs and performance issues around these days, and I
keep chasing them in dmabuf first.  Removing it from the equation for
now.
This commit is contained in:
Derek Foreman 2016-06-23 13:55:03 -05:00
parent c512bb68e7
commit d2a3502481
1 changed files with 3 additions and 1 deletions

View File

@ -12,7 +12,9 @@
Eina_Bool
_evas_surface_init(Surface *s, int w, int h, int num_buf)
{
if (_evas_dmabuf_surface_create(s, w, h, num_buf)) return EINA_TRUE;
if (getenv("EVAS_WAYLAND_SHM_USE_DMABUF"))
if (_evas_dmabuf_surface_create(s, w, h, num_buf)) return EINA_TRUE;
if (_evas_shm_surface_create(s, w, h, num_buf)) return EINA_TRUE;
return EINA_FALSE;