aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/evas_callbacks.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-02-17 18:06:10 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-02-21 10:52:39 +0900
commit60dc978857564cb9ee0319810387c5a74936bd84 (patch)
treef20144df59b8c0df3c9d7c788f64dc611e279853 /src/lib/evas/canvas/evas_callbacks.c
parentdocs: Fix typos and some wrong expressions in Eina API reference doxygen. (diff)
downloadefl-60dc978857564cb9ee0319810387c5a74936bd84.tar.gz
evas: Inline checks for post-event cb call
This avoid excessive calls to a real function. @optimization
Diffstat (limited to 'src/lib/evas/canvas/evas_callbacks.c')
-rw-r--r--src/lib/evas/canvas/evas_callbacks.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/evas/canvas/evas_callbacks.c b/src/lib/evas/canvas/evas_callbacks.c
index c57682c242..9bc736670b 100644
--- a/src/lib/evas/canvas/evas_callbacks.c
+++ b/src/lib/evas/canvas/evas_callbacks.c
@@ -222,14 +222,13 @@ _eo_evas_cb(void *data, const Efl_Event *event)
}
void
-_evas_post_event_callback_call(Evas *eo_e, Evas_Public_Data *e, int min_event_id)
+_evas_post_event_callback_call_real(Evas *eo_e, Evas_Public_Data *e, int min_event_id)
{
Evas_Post_Callback *pc;
Eina_List *l, *l_next;
int skip = 0;
if (e->delete_me) return;
- if (!e->post_events) return;
_evas_walk(e);
e->running_post_events++;
@@ -250,7 +249,7 @@ _evas_post_event_callback_call(Evas *eo_e, Evas_Public_Data *e, int min_event_id
&& (e->current_event == EVAS_CALLBACK_LAST))
{
WRN("Not all post-event callbacks have been processed!");
- _evas_post_event_callback_call(eo_e, e, 0);
+ _evas_post_event_callback_call_real(eo_e, e, 0);
}
}