derekf pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=2042e4bc213476463a09e316b2a43188f4bfe915

commit 2042e4bc213476463a09e316b2a43188f4bfe915
Author: Derek Foreman <[email protected]>
Date:   Mon Nov 13 12:15:22 2017 -0600

    wayland_shm: Remove surface from buffer struct
    
    All users are now removed so we no longer need this.
---
 src/modules/evas/engines/wayland_shm/evas_dmabuf.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/modules/evas/engines/wayland_shm/evas_dmabuf.c 
b/src/modules/evas/engines/wayland_shm/evas_dmabuf.c
index 698320dda6..12009719bd 100644
--- a/src/modules/evas/engines/wayland_shm/evas_dmabuf.c
+++ b/src/modules/evas/engines/wayland_shm/evas_dmabuf.c
@@ -51,7 +51,6 @@ Buffer_Manager *buffer_manager = NULL;
 
 struct _Ecore_Wl2_Buffer
 {
-   Dmabuf_Surface *surface;
    struct wl_buffer *wl_buffer;
    int size;
    int w, h;
@@ -537,7 +536,6 @@ ecore_wl2_buffer_destroy(Ecore_Wl2_Buffer *b)
    if (b->locked || b->busy)
      {
         b->orphaned = EINA_TRUE;
-        b->surface = NULL;
         return;
      }
    if (b->fd != -1) close(b->fd);
@@ -706,7 +704,6 @@ ecore_wl2_buffer_create(Dmabuf_Surface *s, int w, int h, 
Eina_Bool alpha)
    if (!out) return NULL;
 
    out->fd = -1;
-   out->surface = s;
    out->alpha = alpha;
    out->bh = _buffer_manager_alloc("name", w, h, &out->stride, &out->fd);
    if (!out->bh)

-- 


Reply via email to