wayland_shm: remove dirty bit entirely
authorDerek Foreman <derekf@osg.samsung.com>
Fri, 26 Jan 2018 16:30:19 +0000 (10:30 -0600)
committerJiyoun Park <jy0703.park@samsung.com>
Tue, 3 Apr 2018 13:08:00 +0000 (22:08 +0900)
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
src/modules/evas/engines/wayland_shm/evas_outbuf.c

index 3954c55..94eb134 100755 (executable)
@@ -99,7 +99,7 @@ struct _Outbuf
         /* Eina_Bool redraw : 1; */
         Eina_Bool destination_alpha : 1;
      } priv;
-   Eina_Bool dirty : 1;
+
    // TIZEN_ONLY(20161017): Properly invalidate buffer //
    int prev_age;
    //
index c93633e..0774054 100755 (executable)
@@ -295,22 +295,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;
@@ -319,11 +314,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);