wayland_shm: Store the ecore_wl2_display in the Outbuf

We'll need it soon.
This commit is contained in:
Derek Foreman 2017-09-11 15:37:53 -05:00
parent 280ba424e4
commit 2a15d7b730
3 changed files with 9 additions and 1 deletions

View File

@ -131,8 +131,14 @@ eng_output_update(void *engine, void *data, void *info, unsigned int w, unsigned
{
Evas_Engine_Info_Wayland *einfo = info;
Render_Engine *re = data;
Outbuf *ob;
_evas_outbuf_surface_set(re->generic.ob,
ob = re->generic.ob;
if (ob->ewd != einfo->info.wl2_display)
{
re->generic.ob->ewd = einfo->info.wl2_display;
}
_evas_outbuf_surface_set(ob,
einfo->info.wl_shm,
einfo->info.wl_dmabuf);

View File

@ -112,6 +112,7 @@ struct _Outbuf
int num_buff;
Outbuf_Depth depth;
Ecore_Wl2_Display *ewd;
Evas_Engine_Info_Wayland *info;
Surface *surface;

View File

@ -56,6 +56,7 @@ _evas_outbuf_setup(int w, int h, Evas_Engine_Info_Wayland *info)
ob->depth = info->info.depth;
ob->priv.destination_alpha = info->info.destination_alpha;
ob->hidden = info->info.hidden;
ob->ewd = info->info.wl2_display;
/* default to triple buffer */
ob->num_buff = 3;