wayland_shm: Add Outbuf to Surface struct
authorDerek Foreman <derekf@osg.samsung.com>
Mon, 11 Sep 2017 21:57:05 +0000 (16:57 -0500)
committerDerek Foreman <derekf@osg.samsung.com>
Thu, 12 Oct 2017 17:24:03 +0000 (12:24 -0500)
We're going to need that soon.

src/modules/evas/engines/wayland_shm/evas_engine.h
src/modules/evas/engines/wayland_shm/evas_outbuf.c

index 2b014c3..b9393da 100644 (file)
@@ -87,6 +87,7 @@ typedef struct _Surface Surface;
 struct _Surface
 {
    Surface_Type type;
+   Outbuf *ob;
    union
      {
         Shm_Surface *shm;
index 9caa529..1f599e1 100644 (file)
@@ -21,7 +21,7 @@ _evas_surface_init(Surface *s, int w, int h, int num_buf)
 }
 
 static Surface *
-_evas_surface_create(Evas_Engine_Info_Wayland *info, int w, int h, int num_buf)
+_evas_surface_create(Evas_Engine_Info_Wayland *info, int w, int h, Outbuf *ob)
 {
    Surface *out;
 
@@ -29,8 +29,9 @@ _evas_surface_create(Evas_Engine_Info_Wayland *info, int w, int h, int num_buf)
    if (!out) return NULL;
    out->type = SURFACE_EMPTY;
    out->info = info;
+   out->ob = ob;
 
-   if (_evas_surface_init(out, w, h, num_buf)) return out;
+   if (_evas_surface_init(out, w, h, ob->num_buff)) return out;
 
    free(out);
    return NULL;
@@ -87,7 +88,7 @@ _evas_outbuf_setup(int w, int h, Evas_Engine_Info_Wayland *info)
    else
      goto unhandled_rotation;
 
-   ob->surface = _evas_surface_create(info, sw, sh, ob->num_buff);
+   ob->surface = _evas_surface_create(info, sw, sh, ob);
    if (!ob->surface) goto surf_err;
 
 unhandled_rotation: