devilhorns pushed a commit to branch master.

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

commit d68c382105db671f81734b4c1ceef76de4f6d796
Author: Derek Foreman <der...@osg.samsung.com>
Date:   Tue Jul 28 09:16:04 2015 -0400

    wayland-shm: Remove "mapped"
    
    Summary:
    Looks like the recent changes to swap/redraw have fixed a problem with
    damage tracking and we no longer need this.
    
    Damage history seems ok without it now.
    
    @fix
    
    Reviewers: zmike, devilhorns
    
    Subscribers: cedric
    
    Differential Revision: https://phab.enlightenment.org/D2876
---
 src/modules/evas/engines/wayland_shm/evas_engine.h | 1 -
 src/modules/evas/engines/wayland_shm/evas_outbuf.c | 2 --
 src/modules/evas/engines/wayland_shm/evas_shm.c    | 1 -
 3 files changed, 4 deletions(-)

diff --git a/src/modules/evas/engines/wayland_shm/evas_engine.h 
b/src/modules/evas/engines/wayland_shm/evas_engine.h
index a4a8ade..f8406ae 100644
--- a/src/modules/evas/engines/wayland_shm/evas_engine.h
+++ b/src/modules/evas/engines/wayland_shm/evas_engine.h
@@ -86,7 +86,6 @@ struct _Shm_Surface
    Shm_Leaf *current;
 
    Eina_Bool alpha : 1;
-   Eina_Bool mapped : 1;
 };
 
 struct _Outbuf
diff --git a/src/modules/evas/engines/wayland_shm/evas_outbuf.c 
b/src/modules/evas/engines/wayland_shm/evas_outbuf.c
index e5d6dbe..ad3182d 100644
--- a/src/modules/evas/engines/wayland_shm/evas_outbuf.c
+++ b/src/modules/evas/engines/wayland_shm/evas_outbuf.c
@@ -261,8 +261,6 @@ _evas_outbuf_swapmode_get(Outbuf *ob)
 
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
 
-   if (!ob->surface->mapped) return MODE_FULL;
-
    for (; i < ob->surface->num_buff; i++)
      {
         n = (ob->surface->num_buff + ob->surface->curr_buff - (i)) % 
ob->surface->num_buff;
diff --git a/src/modules/evas/engines/wayland_shm/evas_shm.c 
b/src/modules/evas/engines/wayland_shm/evas_shm.c
index dadd628..0b3cef3 100644
--- a/src/modules/evas/engines/wayland_shm/evas_shm.c
+++ b/src/modules/evas/engines/wayland_shm/evas_shm.c
@@ -426,7 +426,6 @@ _evas_shm_surface_swap(Shm_Surface *surface)
 
    surface->dx = 0;
    surface->dy = 0;
-   surface->mapped = EINA_TRUE;
 }
 
 void *

-- 


Reply via email to