fix wayland frame callback times 26/240726/1
authorSeunghun Lee <shiin.lee@samsung.com>
Tue, 11 Aug 2020 12:09:02 +0000 (21:09 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Tue, 11 Aug 2020 12:09:02 +0000 (21:09 +0900)
ecore_time_unix_get() * 1000 is too big to fit in a uint32, so use
ecore_loop_time_get() * 1000.

Change-Id: I1db473a2bf292cce32850da6b1f51178a4ee5bd1

src/bin/e_comp_wl.c
src/bin/e_comp_wl_rsm.c
src/bin/e_pixmap.c

index dd38752e2e2f6278f66b927448848f4b082c10b1..d65180c518a40c35690ffa418dbb929390359fa1 100644 (file)
@@ -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);
      }
 
index 18c14d12a387b80b654abf13fd648d643c6ae0ad..603079e5e151240127cf98d6360c3214d9fc392d 100644 (file)
@@ -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);
      }
 
index bcc4e5ebbb79ed4baf07d7565f1f3760d1f03994..0f6a31452d2a6c928b95324eafaeb37a32744c1d 100644 (file)
@@ -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);
           }
      }