derekf pushed a commit to branch master.

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

commit 3ef46710855f49fe5f1644efdc55c4095d457a2a
Author: Derek Foreman <[email protected]>
Date:   Fri Jan 26 10:30:19 2018 -0600

    wayland_shm: remove dirty bit entirely
    
    Now that we're not using it for session recovery we can strip it out
    entirely.
---
 src/modules/evas/engines/wayland_shm/evas_engine.h |  2 --
 src/modules/evas/engines/wayland_shm/evas_outbuf.c | 11 +++--------
 2 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/src/modules/evas/engines/wayland_shm/evas_engine.h 
b/src/modules/evas/engines/wayland_shm/evas_engine.h
index 354bd13192..c61b36a97a 100644
--- a/src/modules/evas/engines/wayland_shm/evas_engine.h
+++ b/src/modules/evas/engines/wayland_shm/evas_engine.h
@@ -99,8 +99,6 @@ struct _Outbuf
         /* Eina_Bool redraw : 1; */
         Eina_Bool destination_alpha : 1;
      } priv;
-
-   Eina_Bool dirty : 1;
 };
 
 Outbuf *_evas_outbuf_setup(int w, int h, Evas_Engine_Info_Wayland *info);
diff --git a/src/modules/evas/engines/wayland_shm/evas_outbuf.c 
b/src/modules/evas/engines/wayland_shm/evas_outbuf.c
index f5d32bb3dc..9b520e7120 100644
--- a/src/modules/evas/engines/wayland_shm/evas_outbuf.c
+++ b/src/modules/evas/engines/wayland_shm/evas_outbuf.c
@@ -266,22 +266,17 @@ _evas_outbuf_rotation_get(Outbuf *ob)
 void 
 _evas_outbuf_reconfigure(Outbuf *ob, int w, int h, int rot, Outbuf_Depth 
depth, Eina_Bool alpha, Eina_Bool resize)
 {
-   Eina_Bool dirty;
-
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
 
    if ((depth == OUTBUF_DEPTH_NONE) || 
        (depth == OUTBUF_DEPTH_INHERIT))
      depth = ob->depth;
 
-   if (!ob->dirty && (ob->w == w) && (ob->h == h) &&
+   if ((ob->w == w) && (ob->h == h) &&
        (ob->rotation == rot) && (ob->depth == depth) && 
        (ob->priv.destination_alpha == alpha))
      return;
 
-   dirty = ob->dirty;
-   ob->dirty = EINA_FALSE;
-
    ob->w = w;
    ob->h = h;
    ob->rotation = rot;
@@ -290,11 +285,11 @@ _evas_outbuf_reconfigure(Outbuf *ob, int w, int h, int 
rot, Outbuf_Depth depth,
 
    if ((ob->rotation == 0) || (ob->rotation == 180))
      {
-        ecore_wl2_surface_reconfigure(ob->surface, w, h, resize, dirty);
+        ecore_wl2_surface_reconfigure(ob->surface, w, h, resize, EINA_FALSE);
      }
    else if ((ob->rotation == 90) || (ob->rotation == 270))
      {
-        ecore_wl2_surface_reconfigure(ob->surface, h, w, resize, dirty);
+        ecore_wl2_surface_reconfigure(ob->surface, h, w, resize, EINA_FALSE);
      }
 
    _evas_outbuf_idle_flush(ob);

-- 


Reply via email to