path: root/src/lib/evas/common/evas_draw_main.c
diff options
authorCedric BAIL <>2015-02-20 17:11:44 +0100
committerCedric BAIL <>2015-02-20 17:11:44 +0100
commit6bb4ecd65db4cb674ca3dc6ef30ceb1a22445a90 (patch)
tree4d8dc9dd2b9f741c8bddf27e35052a6b2e9139d2 /src/lib/evas/common/evas_draw_main.c
parentbc584cd59bab1af3654e194128436e6aba124f7e (diff)
evas: use two thread when scaling image.
This is for now just a small experiment. It was based on the experiment made with OpenMP. I prefered to only use Eina here as we have already all the infrastructure to do this nicely and simply. As a result I get a 65% speed improved on average for the involved scaling operation. The secondary CPU is on my laptop running with a load of 75% percent. I don't have right now the time to do power consumption analysis, but I think it shouldn't be to bad. I am also not throwing more core at this as we are not able to use the second core at its max already, so additional core may result in a bigger energy loss without enough gain.
Diffstat (limited to 'src/lib/evas/common/evas_draw_main.c')
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/evas/common/evas_draw_main.c b/src/lib/evas/common/evas_draw_main.c
index 5d1e415f86..ed1f95158e 100644
--- a/src/lib/evas/common/evas_draw_main.c
+++ b/src/lib/evas/common/evas_draw_main.c
@@ -45,6 +45,7 @@ evas_common_init(void)
45 evas_common_image_init(); 45 evas_common_image_init();
46 evas_common_convert_init(); 46 evas_common_convert_init();
47 evas_common_scale_init(); 47 evas_common_scale_init();
48 evas_common_scale_sample_init();
48 evas_common_rectangle_init(); 49 evas_common_rectangle_init();
49 evas_common_polygon_init(); 50 evas_common_polygon_init();
50 evas_common_line_init(); 51 evas_common_line_init();
@@ -60,6 +61,7 @@ evas_common_shutdown(void)
60 61
61 evas_font_dir_cache_free(); 62 evas_font_dir_cache_free();
62 evas_common_image_cache_free(); 63 evas_common_image_cache_free();
64 evas_common_scale_sample_shutdown();
63} 65}
64 66
65EAPI void 67EAPI void