From 7fc66e53213e4a23e77a47d8fa5afcc8280abedf Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Fri, 26 Jan 2018 10:30:19 -0600 Subject: [PATCH] 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, 4 insertions(+), 9 deletions(-) diff --git a/src/modules/evas/engines/wayland_shm/evas_engine.h b/src/modules/evas/engines/wayland_shm/evas_engine.h index 3954c55..94eb134 100755 --- a/src/modules/evas/engines/wayland_shm/evas_engine.h +++ b/src/modules/evas/engines/wayland_shm/evas_engine.h @@ -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; // diff --git a/src/modules/evas/engines/wayland_shm/evas_outbuf.c b/src/modules/evas/engines/wayland_shm/evas_outbuf.c index c93633e..0774054 100755 --- a/src/modules/evas/engines/wayland_shm/evas_outbuf.c +++ b/src/modules/evas/engines/wayland_shm/evas_outbuf.c @@ -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); -- 2.7.4