This copies the behaviour in opengl_x11 engine, where the buffer
age needs to be continuously the same to be taken into account.
If the age varies, then we fallback to a full redraw.
Apparently this fixes issues on actual devices. I tested this
patch in weston (I didn't have issues before and buffer age is 1).
This commit is cherry-pick of the upstream commit.
https://git.enlightenment.org/core/efl.git/commit/?id=
62ca4486ea30fd63a5589ea7af373a5cb9982031
TIZEN_ONLY tag has been removed
Change-Id: If479243d5f8bce5bd41142e833e04602e6152326
Signed-off-by: Wonki Kim <wonki_.kim@samsung.com>
int rotation;
int onebuf;
int num_buff;
+ int prev_age;
Outbuf_Depth depth;
Evas_Engine_Info_Wayland_Shm *info;
/* Eina_Bool redraw : 1; */
Eina_Bool destination_alpha : 1;
} priv;
- // TIZEN_ONLY(20161017): Properly invalidate buffer //
- int prev_age;
- //
};
Eina_Bool _evas_tbmbuf_surface_create(Surface *s, int w, int h, int num_buff);
Render_Engine_Swap_Mode
_evas_outbuf_swap_mode_get(Outbuf *ob)
{
- //TIZEN_ONLY(20161017): Properly invalidate buffer
int age;
Render_Engine_Swap_Mode mode;
ob->prev_age = age;
return mode;
- //
}
int