forked from enlightenment/efl
wayland_shm: Use wrapper functions instead of function pointers
switch to the new "API"
This commit is contained in:
parent
594fef7dd3
commit
57622713de
|
@ -70,7 +70,7 @@ _evas_outbuf_free(Outbuf *ob)
|
||||||
_evas_outbuf_flush(ob, NULL, NULL, EVAS_RENDER_MODE_UNDEF);
|
_evas_outbuf_flush(ob, NULL, NULL, EVAS_RENDER_MODE_UNDEF);
|
||||||
_evas_outbuf_idle_flush(ob);
|
_evas_outbuf_idle_flush(ob);
|
||||||
|
|
||||||
if (ob->surface) ob->surface->funcs.destroy(ob->surface);
|
if (ob->surface) surface_destroy(ob->surface);
|
||||||
|
|
||||||
eina_array_flush(&ob->priv.onebuf_regions);
|
eina_array_flush(&ob->priv.onebuf_regions);
|
||||||
|
|
||||||
|
@ -244,7 +244,7 @@ _evas_outbuf_swap_mode_get(Outbuf *ob)
|
||||||
|
|
||||||
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
||||||
|
|
||||||
age = ob->surface->funcs.assign(ob->surface);
|
age = surface_assign(ob->surface);
|
||||||
if (!age) return MODE_FULL;
|
if (!age) return MODE_FULL;
|
||||||
|
|
||||||
else if (age == 1) return MODE_COPY;
|
else if (age == 1) return MODE_COPY;
|
||||||
|
@ -290,11 +290,11 @@ _evas_outbuf_reconfigure(Outbuf *ob, int w, int h, int rot, Outbuf_Depth depth,
|
||||||
|
|
||||||
if ((ob->rotation == 0) || (ob->rotation == 180))
|
if ((ob->rotation == 0) || (ob->rotation == 180))
|
||||||
{
|
{
|
||||||
ob->surface->funcs.reconfigure(ob->surface, w, h, resize, dirty);
|
surface_reconfigure(ob->surface, w, h, resize, dirty);
|
||||||
}
|
}
|
||||||
else if ((ob->rotation == 90) || (ob->rotation == 270))
|
else if ((ob->rotation == 90) || (ob->rotation == 270))
|
||||||
{
|
{
|
||||||
ob->surface->funcs.reconfigure(ob->surface, h, w, resize, dirty);
|
surface_reconfigure(ob->surface, h, w, resize, dirty);
|
||||||
}
|
}
|
||||||
|
|
||||||
_evas_outbuf_idle_flush(ob);
|
_evas_outbuf_idle_flush(ob);
|
||||||
|
@ -318,7 +318,7 @@ _evas_outbuf_update_region_new(Outbuf *ob, int x, int y, int w, int h, int *cx,
|
||||||
int bw = 0, bh = 0;
|
int bw = 0, bh = 0;
|
||||||
void *data;
|
void *data;
|
||||||
|
|
||||||
if (!(data = ob->surface->funcs.data_get(ob->surface, &bw, &bh)))
|
if (!(data = surface_data_get(ob->surface, &bw, &bh)))
|
||||||
{
|
{
|
||||||
/* ERR("Could not get surface data"); */
|
/* ERR("Could not get surface data"); */
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -494,7 +494,7 @@ _evas_outbuf_update_region_push(Outbuf *ob, RGBA_Image *update, int x, int y, in
|
||||||
bpp = depth / 8;
|
bpp = depth / 8;
|
||||||
|
|
||||||
/* check for valid desination data */
|
/* check for valid desination data */
|
||||||
if (!(dst = ob->surface->funcs.data_get(ob->surface, &ww, &hh)))
|
if (!(dst = surface_data_get(ob->surface, &ww, &hh)))
|
||||||
{
|
{
|
||||||
/* ERR("Could not get surface data"); */
|
/* ERR("Could not get surface data"); */
|
||||||
return;
|
return;
|
||||||
|
@ -552,7 +552,7 @@ _evas_outbuf_redraws_clear(Outbuf *ob)
|
||||||
if (!ob->priv.rect_count) return;
|
if (!ob->priv.rect_count) return;
|
||||||
wls = ecore_wl2_window_surface_get(ob->info->info.wl2_win);
|
wls = ecore_wl2_window_surface_get(ob->info->info.wl2_win);
|
||||||
if (wls)
|
if (wls)
|
||||||
ob->surface->funcs.post(ob->surface, ob->priv.rects, ob->priv.rect_count);
|
surface_post(ob->surface, ob->priv.rects, ob->priv.rect_count);
|
||||||
free(ob->priv.rects);
|
free(ob->priv.rects);
|
||||||
ob->priv.rect_count = 0;
|
ob->priv.rect_count = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue