From: Seunghun Lee Date: Tue, 11 Aug 2020 12:09:02 +0000 (+0900) Subject: fix wayland frame callback times X-Git-Tag: submit/tizen/20200821.110626~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=609fdb00e101b9cfc1c13b4ef3e8fc2da1983184;p=platform%2Fupstream%2Fenlightenment.git fix wayland frame callback times ecore_time_unix_get() * 1000 is too big to fit in a uint32, so use ecore_loop_time_get() * 1000. Change-Id: I1db473a2bf292cce32850da6b1f51178a4ee5bd1 --- diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index dd38752e2e..d65180c518 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -2617,7 +2617,7 @@ _e_comp_wl_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *state) EINA_LIST_FOREACH_SAFE(ec->comp_data->frames, l, ll, cb) { - wl_callback_send_done(cb, (unsigned int)(ecore_time_unix_get() * 1000)); + wl_callback_send_done(cb, (unsigned int)(ecore_loop_time_get() * 1000)); wl_resource_destroy(cb); } diff --git a/src/bin/e_comp_wl_rsm.c b/src/bin/e_comp_wl_rsm.c index 18c14d12a3..603079e5e1 100644 --- a/src/bin/e_comp_wl_rsm.c +++ b/src/bin/e_comp_wl_rsm.c @@ -3046,7 +3046,7 @@ _e_comp_wl_remote_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *st /* send previous frame done */ EINA_LIST_FOREACH_SAFE(ec->comp_data->frames, l, ll, cb) { - wl_callback_send_done(cb, (unsigned int)(ecore_time_unix_get() * 1000)); + wl_callback_send_done(cb, (unsigned int)(ecore_loop_time_get() * 1000)); wl_resource_destroy(cb); } diff --git a/src/bin/e_pixmap.c b/src/bin/e_pixmap.c index bcc4e5ebbb..0f6a31452d 100644 --- a/src/bin/e_pixmap.c +++ b/src/bin/e_pixmap.c @@ -697,7 +697,7 @@ e_pixmap_image_clear(E_Pixmap *cp, Eina_Bool cache) cd = (E_Comp_Wl_Client_Data *)cp->client->comp_data; EINA_LIST_FOREACH_SAFE(cd->frames, l, ll, cb) { - wl_callback_send_done(cb, (unsigned int)(ecore_time_unix_get() * 1000)); + wl_callback_send_done(cb, (unsigned int)(ecore_loop_time_get() * 1000)); wl_resource_destroy(cb); } } @@ -1079,7 +1079,7 @@ _e_pixmap_buffer_clear(E_Pixmap *cp, Eina_Bool only_free) cdata = (E_Comp_Wl_Client_Data *)cp->client->comp_data; EINA_LIST_FOREACH_SAFE(cdata->frames, l, ll, cb) { - wl_callback_send_done(cb, (unsigned int)(ecore_time_unix_get() * 1000)); + wl_callback_send_done(cb, (unsigned int)(ecore_loop_time_get() * 1000)); wl_resource_destroy(cb); } }