forked from enlightenment/efl
wayland_shm: remove dirty bit entirely
Now that we're not using it for session recovery we can strip it out entirely.
This commit is contained in:
parent
26a718b07e
commit
3ef4671085
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue