summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/wayland_egl/evas_engine.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2017-08-25 10:48:13 -0700
committerCedric BAIL <cedric@osg.samsung.com>2017-08-25 10:48:13 -0700
commit46e1df839be16b057dbc2179626db180d90935c8 (patch)
tree2783b9d1749430c72d9597985277eca3bb7e0e2c /src/modules/evas/engines/wayland_egl/evas_engine.c
parent1e2bbf8feae36fbca083ed030f26fd42d5436c9a (diff)
evas: factorize call to info and info_free.
Diffstat (limited to 'src/modules/evas/engines/wayland_egl/evas_engine.c')
-rw-r--r--src/modules/evas/engines/wayland_egl/evas_engine.c27
1 files changed, 6 insertions, 21 deletions
diff --git a/src/modules/evas/engines/wayland_egl/evas_engine.c b/src/modules/evas/engines/wayland_egl/evas_engine.c
index 4fa6a44..16ad004 100644
--- a/src/modules/evas/engines/wayland_egl/evas_engine.c
+++ b/src/modules/evas/engines/wayland_egl/evas_engine.c
@@ -502,28 +502,12 @@ static const EVGL_Interface evgl_funcs =
502}; 502};
503 503
504/* engine functions */ 504/* engine functions */
505static void *
506eng_output_info(void)
507{
508 Evas_Engine_Info_Wayland *info;
509
510 /* try to allocate space for our engine info */
511 if (!(info = calloc(1, sizeof(Evas_Engine_Info_Wayland))))
512 return NULL;
513
514 info->magic.magic = rand();
515 info->render_mode = EVAS_RENDER_MODE_BLOCKING;
516
517 return info;
518}
519
520static void 505static void
521eng_output_info_free(Evas *evas EINA_UNUSED, void *info) 506eng_output_info_setup(void *info)
522{ 507{
523 Evas_Engine_Info_Wayland *inf; 508 Evas_Engine_Info_Wayland *info = info;
524 509
525 if ((inf = (Evas_Engine_Info_Wayland *)info)) 510 info->render_mode = EVAS_RENDER_MODE_BLOCKING;
526 free(inf);
527} 511}
528 512
529static Render_Engine_Swap_Mode 513static Render_Engine_Swap_Mode
@@ -1430,8 +1414,7 @@ module_open(Evas_Module *em)
1430 1414
1431#define ORD(f) EVAS_API_OVERRIDE(f, &func, eng_) 1415#define ORD(f) EVAS_API_OVERRIDE(f, &func, eng_)
1432 1416
1433 ORD(output_info); 1417 ORD(output_info_setup);
1434 ORD(output_info_free);
1435 ORD(output_setup); 1418 ORD(output_setup);
1436 ORD(output_update); 1419 ORD(output_update);
1437 ORD(canvas_alpha_get); 1420 ORD(canvas_alpha_get);
@@ -1443,6 +1426,8 @@ module_open(Evas_Module *em)
1443 ORD(image_native_init); 1426 ORD(image_native_init);
1444 ORD(image_native_shutdown); 1427 ORD(image_native_shutdown);
1445 1428
1429 func.info_size = sizeof (Evas_Engine_Info_Wayland);
1430
1446 symbols(); 1431 symbols();
1447 1432
1448 /* advertise out which functions we support */ 1433 /* advertise out which functions we support */