forked from enlightenment/efl
ecore_evas_extn: Modify not to send a message if there is nothing to draw
Summary: Seding ipc messages on ews_update_image(which is invoked as a callback of EVAS_RENDER_POST) can makes ecore main loop awake, because sending ipc messages makes message_queue not empty. so that this patch prevent seding ipc logic if there is nothing to draw. Reviewers: cedric, raster Reviewed By: raster Subscribers: zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6055
This commit is contained in:
parent
9cf5b97a8a
commit
fef2a12ef6
|
@ -1542,6 +1542,8 @@ _ecore_evas_ews_update_image(void *data, Evas *e EINA_UNUSED, void *event_info)
|
||||||
prev_b = extn->prev_b;
|
prev_b = extn->prev_b;
|
||||||
_extnbuf_unlock(extn->b[prev_b].buf);
|
_extnbuf_unlock(extn->b[prev_b].buf);
|
||||||
|
|
||||||
|
if (post->updated_area)
|
||||||
|
{
|
||||||
EINA_LIST_FOREACH(post->updated_area, l, r)
|
EINA_LIST_FOREACH(post->updated_area, l, r)
|
||||||
{
|
{
|
||||||
Ipc_Data_Update ipc;
|
Ipc_Data_Update ipc;
|
||||||
|
@ -1564,6 +1566,7 @@ _ecore_evas_ews_update_image(void *data, Evas *e EINA_UNUSED, void *event_info)
|
||||||
_ecore_evas_extn_socket_window_profile_change_done_send(ee);
|
_ecore_evas_extn_socket_window_profile_change_done_send(ee);
|
||||||
extn->profile.done = EINA_FALSE;
|
extn->profile.done = EINA_FALSE;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
|
|
Loading…
Reference in New Issue