devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=1c19649acd93e97560521b89b18f5483786b34f6

commit 1c19649acd93e97560521b89b18f5483786b34f6
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Tue Jul 28 09:43:16 2015 -0400

    evas-wayland-shm: Fix issue of surface_swap spamming invalid warning
    
    Summary: Since the surface_swap functionality is changed now, we no
    longer need to bother checking if the leaf is busy as we don't use the
    leaf itself inside this function anymore.
    
    @fix
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/modules/evas/engines/wayland_shm/evas_shm.c | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/src/modules/evas/engines/wayland_shm/evas_shm.c 
b/src/modules/evas/engines/wayland_shm/evas_shm.c
index 0b3cef3..7574a27 100644
--- a/src/modules/evas/engines/wayland_shm/evas_shm.c
+++ b/src/modules/evas/engines/wayland_shm/evas_shm.c
@@ -407,21 +407,8 @@ _evas_shm_surface_reconfigure(Shm_Surface *surface, int 
dx, int dy, int w, int h
 void 
 _evas_shm_surface_swap(Shm_Surface *surface)
 {
-   Shm_Leaf *leaf;
-
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
 
-   leaf = &surface->leaf[surface->curr_buff];
-   if (!leaf) return;
-
-   if (leaf->busy)
-     {
-        WRN("Trying to use a busy buffer");
-        return;
-     }
-
-   /* DBG("Current Leaf %d", (int)(leaf - &surface->leaf[0])); */
-
    surface->last_buff = surface->curr_buff;
 
    surface->dx = 0;
@@ -497,6 +484,5 @@ _evas_shm_surface_redraw(Shm_Surface *surface, 
Eina_Rectangle *rects, unsigned i
 
    wl_surface_commit(surface->surface);
 
-   leaf = &surface->leaf[surface->curr_buff];
    leaf->busy = 1;
 }

-- 


Reply via email to