elm_bg_add(Evas_Object *parent)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+// TIZEN_ONLY(20160218): Improve launching performance.
+ if (_precreated_bg_obj)
+ {
+ Evas_Object *par_obj = elm_widget_parent_get(_precreated_bg_obj);
+
+ if (par_obj == parent)
+ {
+ Evas_Object *above_obj = evas_object_above_get(_precreated_bg_obj);
+ if (above_obj)
+ evas_object_raise(_precreated_bg_obj);
+
+ Evas_Object *tmp = _precreated_bg_obj;
+ _precreated_bg_obj = NULL;
+ INF("Return precreated obj(%p).", tmp);
+ return tmp;
+ }
+ }
+//
+
return elm_legacy_add(MY_CLASS, parent);
}
case ELM_WIN_SOCKET_IMAGE: klass = EFL_UI_WIN_SOCKET_CLASS; break;
default: break;
}
+// TIZEN_ONLY(20160218): Improve launching performance.
+ if (_precreated_win_obj)
+ {
+ ELM_WIN_DATA_GET(_precreated_win_obj, sd);
+
+ if (sd)
+ {
+ if ((sd->type == type) && (sd->parent == parent))
+ {
+ Evas_Object *tmp = _precreated_win_obj;
+ TRAP(sd, name_class_set, name, _elm_appname);
+ _precreated_win_obj = NULL;
+ INF("Return precreated obj(%p).", tmp);
+
+ return tmp;
+ }
+ }
+ }
+//
Evas_Object *obj = elm_legacy_add(klass, parent,
efl_ui_win_name_set(efl_added, name),
elm_conformant_add(Evas_Object *parent)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+// TIZEN_ONLY(20160218): Improve launching performance.
+ if (_precreated_conform_obj)
+ {
+ Evas_Object *par_obj = elm_widget_parent_get(_precreated_conform_obj);
+
+ if (par_obj == parent)
+ {
+ Evas_Object *above_obj = evas_object_above_get(_precreated_conform_obj);
+ if (above_obj)
+ evas_object_raise(_precreated_conform_obj);
+
+ Evas_Object *tmp = _precreated_conform_obj;
+ _precreated_conform_obj = NULL;
+ INF("Return precreated obj(%p).", tmp);
+ return tmp;
+ }
+ }
+//
return elm_legacy_add(MY_CLASS, parent);
}