summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@samsung.com>2013-11-21 10:47:27 +0900
committerCedric Bail <cedric.bail@samsung.com>2013-11-21 10:50:48 +0900
commit63c01cbb2a01a09a40d22fa47454a82c8b31183f (patch)
treebdc5d806b83e214ceff1f825b9af04458889411c /src
parent3c9059e3e4ca1cd8dd1846d2baf0ca7379b1f4a9 (diff)
evas: reduce numbers of call to eet_init/eet_shutdown.
Diffstat (limited to 'src')
-rw-r--r--src/lib/evas/canvas/evas_main.c8
-rw-r--r--src/lib/evas/common/evas_image_main.c6
2 files changed, 8 insertions, 6 deletions
diff --git a/src/lib/evas/canvas/evas_main.c b/src/lib/evas/canvas/evas_main.c
index 101b82f601..6cc8f8ee6c 100644
--- a/src/lib/evas/canvas/evas_main.c
+++ b/src/lib/evas/canvas/evas_main.c
@@ -51,6 +51,10 @@ evas_init(void)
51 51
52 eo_init(); 52 eo_init();
53 53
54#ifdef BUILD_LOADER_EET
55 eet_init();
56#endif
57
54 evas_module_init(); 58 evas_module_init();
55 if (!evas_async_events_init()) 59 if (!evas_async_events_init())
56 goto shutdown_module; 60 goto shutdown_module;
@@ -124,6 +128,10 @@ evas_shutdown(void)
124 evas_font_dir_cache_free(); 128 evas_font_dir_cache_free();
125 evas_common_shutdown(); 129 evas_common_shutdown();
126 evas_module_shutdown(); 130 evas_module_shutdown();
131
132#ifdef BUILD_LOADER_EET
133 eet_shutdown();
134#endif
127 eo_shutdown(); 135 eo_shutdown();
128 136
129 eina_log_domain_unregister(_evas_log_dom_global); 137 eina_log_domain_unregister(_evas_log_dom_global);
diff --git a/src/lib/evas/common/evas_image_main.c b/src/lib/evas/common/evas_image_main.c
index 1492d80c0f..75767dce58 100644
--- a/src/lib/evas/common/evas_image_main.c
+++ b/src/lib/evas/common/evas_image_main.c
@@ -194,9 +194,6 @@ evas_common_image_init(void)
194 reference++; 194 reference++;
195//// ERR("REF++=%i", reference); 195//// ERR("REF++=%i", reference);
196 196
197#ifdef BUILD_LOADER_EET
198 eet_init();
199#endif
200 evas_common_scalecache_init(); 197 evas_common_scalecache_init();
201} 198}
202 199
@@ -229,9 +226,6 @@ evas_common_image_shutdown(void)
229#endif 226#endif
230 } 227 }
231 228
232#ifdef BUILD_LOADER_EET
233 eet_shutdown();
234#endif
235 evas_common_scalecache_shutdown(); 229 evas_common_scalecache_shutdown();
236} 230}
237 231