forked from enlightenment/efl
evas-wayland-shm: Modify existing engine functions to take a wl_display parameter
Summary: These functions need to have an additional wl_display parameter so that we can set the field inside the Surface structure Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
a48c54cddd
commit
b1bb88b8f2
|
@ -23,7 +23,7 @@ struct _Render_Engine
|
||||||
|
|
||||||
/* LOCAL FUNCTIONS */
|
/* LOCAL FUNCTIONS */
|
||||||
Render_Engine *
|
Render_Engine *
|
||||||
_render_engine_swapbuf_setup(int w, int h, unsigned int rotation, unsigned int depth, Eina_Bool alpha, struct wl_shm *shm, struct wl_surface *surface)
|
_render_engine_swapbuf_setup(int w, int h, unsigned int rotation, unsigned int depth, Eina_Bool alpha, struct wl_shm *shm, struct wl_surface *surface, struct wl_display *disp)
|
||||||
{
|
{
|
||||||
Render_Engine *re;
|
Render_Engine *re;
|
||||||
Outbuf *ob;
|
Outbuf *ob;
|
||||||
|
@ -33,7 +33,7 @@ _render_engine_swapbuf_setup(int w, int h, unsigned int rotation, unsigned int d
|
||||||
/* try to allocate space for new render engine */
|
/* try to allocate space for new render engine */
|
||||||
if (!(re = calloc(1, sizeof(Render_Engine)))) return NULL;
|
if (!(re = calloc(1, sizeof(Render_Engine)))) return NULL;
|
||||||
|
|
||||||
ob = _evas_outbuf_setup(w, h, rotation, depth, alpha, shm, surface);
|
ob = _evas_outbuf_setup(w, h, rotation, depth, alpha, shm, surface, disp);
|
||||||
if (!ob) goto err;
|
if (!ob) goto err;
|
||||||
|
|
||||||
if (!evas_render_engine_software_generic_init(&re->generic, ob,
|
if (!evas_render_engine_software_generic_init(&re->generic, ob,
|
||||||
|
@ -121,7 +121,8 @@ eng_setup(Evas *eo_evas, void *info)
|
||||||
einfo->info.depth,
|
einfo->info.depth,
|
||||||
einfo->info.destination_alpha,
|
einfo->info.destination_alpha,
|
||||||
einfo->info.wl_shm,
|
einfo->info.wl_shm,
|
||||||
einfo->info.wl_surface);
|
einfo->info.wl_surface,
|
||||||
|
einfo->info.wl_disp);
|
||||||
|
|
||||||
if (re)
|
if (re)
|
||||||
re->generic.ob->info = einfo;
|
re->generic.ob->info = einfo;
|
||||||
|
@ -135,7 +136,8 @@ eng_setup(Evas *eo_evas, void *info)
|
||||||
ob = _evas_outbuf_setup(epd->output.w, epd->output.h,
|
ob = _evas_outbuf_setup(epd->output.w, epd->output.h,
|
||||||
einfo->info.rotation, einfo->info.depth,
|
einfo->info.rotation, einfo->info.depth,
|
||||||
einfo->info.destination_alpha,
|
einfo->info.destination_alpha,
|
||||||
einfo->info.wl_shm, einfo->info.wl_surface);
|
einfo->info.wl_shm, einfo->info.wl_surface,
|
||||||
|
einfo->info.wl_disp);
|
||||||
if (ob)
|
if (ob)
|
||||||
{
|
{
|
||||||
ob->info = einfo;
|
ob->info = einfo;
|
||||||
|
|
Loading…
Reference in New Issue