aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/evas_main.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2017-08-25 10:48:17 -0700
committerCedric BAIL <cedric@osg.samsung.com>2017-08-25 10:48:17 -0700
commit22beae8b737daf0915856a12edb8294177a0ca83 (patch)
treebd13e0318665b8ae107b2852ffe38fbdc47a792b /src/lib/evas/canvas/evas_main.c
parentevas: factorize call to info and info_free. (diff)
downloadefl-22beae8b737daf0915856a12edb8294177a0ca83.tar.gz
evas: refactor the creation of the output info logic in libevas.
Diffstat (limited to 'src/lib/evas/canvas/evas_main.c')
-rw-r--r--src/lib/evas/canvas/evas_main.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/lib/evas/canvas/evas_main.c b/src/lib/evas/canvas/evas_main.c
index d713c4abc0..f72f0d71f1 100644
--- a/src/lib/evas/canvas/evas_main.c
+++ b/src/lib/evas/canvas/evas_main.c
@@ -1044,16 +1044,7 @@ evas_output_method_set(Evas *eo_e, int render_method)
Eina_List *l;
EINA_LIST_FOREACH(e->outputs, l, output)
- if (!output->info)
- {
- output->info = calloc(1, e->engine.func->info_size);
- if (!output->info) continue ;
- output->info->magic = rand();
- output->info_magic = output->info->magic;
-
- if (e->engine.func->output_info_setup)
- e->engine.func->output_info_setup(output->info);
- }
+ efl_canvas_output_info_get(e, output);
}
else
{