atspi: block event which is not interested in 40/153840/1
authorShinwoo Kim <cinoo.kim@samsung.com>
Sat, 23 Sep 2017 08:42:55 +0000 (17:42 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Sat, 30 Sep 2017 08:44:48 +0000 (17:44 +0900)
The following ATSPI dbus signal is not interested in.
Moreover the following ATSPI dbus signal occurs a lot at init time.
This could cause a performance issue.

 - 'ChildrenChanged' with added child
 - 'ChildrenChanged' with deleted child
 - 'AddAccessible'
 - 'RemoveAccessible'

Change-Id: Iebfb4ef75b5f32bf025e275dd9b548bd3581b2de

src/lib/elm_atspi_bridge.c
src/lib/elm_interface_atspi_accessible.h

index 9205c6d..9f517bf 100644 (file)
@@ -6694,7 +6694,7 @@ static void _embedded_reply_cb(void *data, const Eldbus_Message *msg, Eldbus_Pen
 
    eo_do(proxy, parent = eo_parent_get());
    if (parent)
-     elm_interface_atspi_accessible_children_changed_added_signal_emit(parent, proxy)
+     elm_interface_atspi_accessible_children_changed_added_signal_emit(parent, proxy);
 }
 
 static void
index 2d4ca4c..8a6b3bf 100644 (file)
@@ -572,20 +572,30 @@ EAPI Elm_Atspi_Relation_Set elm_atspi_relation_set_clone(const Elm_Atspi_Relatio
 /**
  * Emits ATSPI 'ChildrenChanged' dbus signal with added child as argument.
  */
+//TIZEN_ONLY(20170923) Block event which is not interested in
+#define elm_interface_atspi_accessible_children_changed_added_signal_emit(obj, child) /* Empty */
+/*
 #define elm_interface_atspi_accessible_children_changed_added_signal_emit(obj, child) \
    do { \
       Elm_Atspi_Event_Children_Changed_Data atspi_data = { EINA_TRUE, child }; \
    eo_do(ELM_INTERFACE_ATSPI_ACCESSIBLE_MIXIN, elm_interface_atspi_accessible_event_emit(obj, ELM_INTERFACE_ATSPI_ACCESSIBLE_EVENT_CHILDREN_CHANGED, &atspi_data)); \
    } while(0);
+*/
+//
 
 /**
  * Emits ATSPI 'ChildrenChanged' dbus signal with deleted child as argument.
  */
+//TIZEN_ONLY(20170923) Block event which is not interested in
+#define elm_interface_atspi_accessible_children_changed_del_signal_emit(obj, child) /* Empty */
+/*
 #define elm_interface_atspi_accessible_children_changed_del_signal_emit(obj, child) \
    do { \
       Elm_Atspi_Event_Children_Changed_Data atspi_data = { EINA_FALSE, child }; \
       eo_do(ELM_INTERFACE_ATSPI_ACCESSIBLE_MIXIN, elm_interface_atspi_accessible_event_emit(obj, ELM_INTERFACE_ATSPI_ACCESSIBLE_EVENT_CHILDREN_CHANGED, &atspi_data)); \
    } while(0);
+*/
+//
 
 /**
  * Emits ATSPI 'ActiveDescendantChanged' dbus signal.
@@ -602,14 +612,24 @@ EAPI Elm_Atspi_Relation_Set elm_atspi_relation_set_clone(const Elm_Atspi_Relatio
 /**
  * Emits ATSPI 'AddAccessible' dbus signal.
  */
+//TIZEN_ONLY(20170923) Block event which is not interested in
+#define elm_interface_atspi_accessible_added(obj) /* Empty */
+/*
 #define elm_interface_atspi_accessible_added(obj) \
    eo_do(ELM_INTERFACE_ATSPI_ACCESSIBLE_MIXIN, elm_interface_atspi_accessible_event_emit(obj, ELM_INTERFACE_ATSPI_ACCESSIBLE_EVENT_ADDED, NULL));
+*/
+//
 
 /**
  * Emits ATSPI 'RemoveAccessible' dbus signal.
  */
+//TIZEN_ONLY(20170923) Block event which is not interested in
+#define elm_interface_atspi_accessible_removed(obj) /* Empty */
+/*
 #define elm_interface_atspi_accessible_removed(obj) \
    eo_do(ELM_INTERFACE_ATSPI_ACCESSIBLE_MIXIN, elm_interface_atspi_accessible_event_emit(obj, ELM_INTERFACE_ATSPI_ACCESSIBLE_EVENT_REMOVED, NULL));
+*/
+//
 
 #include "elm_interface_atspi_accessible.eo.h"
 #endif