optimization: load font config during font init 76/211776/4
authorsubhransu mohanty <sub.mohanty@samsung.com>
Thu, 8 Aug 2019 05:42:30 +0000 (14:42 +0900)
committerSubhransu Mohanty <sub.mohanty@samsung.com>
Fri, 9 Aug 2019 05:17:32 +0000 (05:17 +0000)
Font config gets initialized on first call to evas_text
by initializing at the font_init time can help the startup
time with precreated window.

Change-Id: I6dd3c0b065aa19ffe32bf932049b1f2fbc8950f8

src/lib/evas/canvas/evas_font_dir.c
src/lib/evas/common/evas_font.h
src/lib/evas/common/evas_font_main.c

index e6af219..155b6d7 100644 (file)
@@ -148,6 +148,14 @@ evas_font_init(void)
 #endif
 }
 
+//TIZEN_ONLY: optimization for precreated window
+void
+evas_font_config_init(void)
+{
+   evas_font_init();
+}
+//
+
 void
 evas_font_dir_cache_free(void)
 {
index 5dc9c78..9d5c8e2 100644 (file)
@@ -400,6 +400,9 @@ EAPI int               evas_common_font_glyph_search         (RGBA_Font *fn, RGB
 void evas_common_font_load_init(void);
 void evas_common_font_load_shutdown(void);
 
+//TIZEN_ONLY: optimization for precreated window
+void evas_font_config_init(void);
+//
 void evas_font_dir_cache_free(void);
 const char *evas_font_dir_cache_find(char *dir, char *font);
 Eina_List *evas_font_dir_available_list(const Eina_List *font_paths);
index b99df9a..24cfef7 100644 (file)
@@ -54,6 +54,10 @@ evas_common_font_init(void)
    LKI(lock_font_draw);
    LKI(lock_bidi);
    LKI(lock_ot);
+
+   //TIZEN_ONLY: optimization for precreated window
+   evas_font_config_init();
+   //
 }
 
 EAPI void