evas: refactor wayland_shm backend to have less useless function redirection.

This commit is contained in:
Cedric BAIL 2017-08-25 10:49:28 -07:00
parent 8c16402a2c
commit 262ab2bd54
1 changed files with 4 additions and 14 deletions

View File

@ -27,10 +27,10 @@ struct _Render_Engine
Render_Output_Software_Generic generic;
};
/* LOCAL FUNCTIONS */
static Render_Engine *
_render_engine_swapbuf_setup(int w, int h, Evas_Engine_Info_Wayland *einfo)
static void *
eng_output_setup(void *engine EINA_UNUSED, void *info, unsigned int w, unsigned int h)
{
Evas_Engine_Info_Wayland *einfo = info;
Render_Engine *re;
Outbuf *ob;
@ -42,7 +42,7 @@ _render_engine_swapbuf_setup(int w, int h, Evas_Engine_Info_Wayland *einfo)
ob = _evas_outbuf_setup(w, h, einfo);
if (!ob) goto err;
if (!evas_render_engine_software_generic_init(&re->generic, ob,
if (!evas_render_engine_software_generic_init(&re->generic, ob,
_evas_outbuf_swap_mode_get,
_evas_outbuf_rotation_get,
NULL,
@ -99,16 +99,6 @@ eng_output_info_setup(void *info)
einfo->render_mode = EVAS_RENDER_MODE_BLOCKING;
}
static void *
eng_output_setup(void *engine EINA_UNUSED, void *info, unsigned int w, unsigned int h)
{
Evas_Engine_Info_Wayland *einfo = info;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
return _render_engine_swapbuf_setup(w, h, einfo);
}
static void
eng_output_resize(void *engine EINA_UNUSED, void *data, int w, int h)
{