derekf pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=57622713de58e73fd85e428656082fc10f244356

commit 57622713de58e73fd85e428656082fc10f244356
Author: Derek Foreman <der...@osg.samsung.com>
Date:   Thu Nov 30 11:56:23 2017 -0600

    wayland_shm: Use wrapper functions instead of function pointers
    
    switch to the new "API"
---
 src/modules/evas/engines/wayland_shm/evas_outbuf.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/modules/evas/engines/wayland_shm/evas_outbuf.c 
b/src/modules/evas/engines/wayland_shm/evas_outbuf.c
index 95280ac7da..8b099a1e88 100644
--- a/src/modules/evas/engines/wayland_shm/evas_outbuf.c
+++ b/src/modules/evas/engines/wayland_shm/evas_outbuf.c
@@ -70,7 +70,7 @@ _evas_outbuf_free(Outbuf *ob)
    _evas_outbuf_flush(ob, NULL, NULL, EVAS_RENDER_MODE_UNDEF);
    _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);
 
@@ -244,7 +244,7 @@ _evas_outbuf_swap_mode_get(Outbuf *ob)
 
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
 
-   age = ob->surface->funcs.assign(ob->surface);
+   age = surface_assign(ob->surface);
    if (!age) return MODE_FULL;
 
    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))
      {
-        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))
      {
-        ob->surface->funcs.reconfigure(ob->surface, h, w, resize, dirty);
+        surface_reconfigure(ob->surface, h, w, resize, dirty);
      }
 
    _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;
              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"); */
                   return NULL;
@@ -494,7 +494,7 @@ _evas_outbuf_update_region_push(Outbuf *ob, RGBA_Image 
*update, int x, int y, in
    bpp = depth / 8;
 
    /* 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"); */
         return;
@@ -552,7 +552,7 @@ _evas_outbuf_redraws_clear(Outbuf *ob)
    if (!ob->priv.rect_count) return;
    wls = ecore_wl2_window_surface_get(ob->info->info.wl2_win);
    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);
    ob->priv.rect_count = 0;
 }

-- 


Reply via email to