summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/wayland_egl/evas_engine.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2016-11-01 15:46:35 -0500
committerDerek Foreman <derekf@osg.samsung.com>2016-11-02 13:37:01 -0500
commitaf4a71bcf0975a4a986c4b1901b795850d1192ae (patch)
treeba77c1ead7eceecf193c2ca2030f9b304a577a57 /src/modules/evas/engines/wayland_egl/evas_engine.c
parent55de5c61cdc896eb3916068044f5355617955e3f (diff)
wayland evas engines: share engine info structure
These engines are incredibly similar - by sharing the same engine info structure we'll be able to simplify the wayland ecore_evas bits and make them much more maintainable.
Diffstat (limited to 'src/modules/evas/engines/wayland_egl/evas_engine.c')
-rw-r--r--src/modules/evas/engines/wayland_egl/evas_engine.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/evas/engines/wayland_egl/evas_engine.c b/src/modules/evas/engines/wayland_egl/evas_engine.c
index eb1fc87..94c4316 100644
--- a/src/modules/evas/engines/wayland_egl/evas_engine.c
+++ b/src/modules/evas/engines/wayland_egl/evas_engine.c
@@ -503,10 +503,10 @@ static const EVGL_Interface evgl_funcs =
503static void * 503static void *
504eng_info(Evas *evas EINA_UNUSED) 504eng_info(Evas *evas EINA_UNUSED)
505{ 505{
506 Evas_Engine_Info_Wayland_Egl *info; 506 Evas_Engine_Info_Wayland *info;
507 507
508 /* try to allocate space for our engine info */ 508 /* try to allocate space for our engine info */
509 if (!(info = calloc(1, sizeof(Evas_Engine_Info_Wayland_Egl)))) 509 if (!(info = calloc(1, sizeof(Evas_Engine_Info_Wayland))))
510 return NULL; 510 return NULL;
511 511
512 info->magic.magic = rand(); 512 info->magic.magic = rand();
@@ -518,9 +518,9 @@ eng_info(Evas *evas EINA_UNUSED)
518static void 518static void
519eng_info_free(Evas *evas EINA_UNUSED, void *info) 519eng_info_free(Evas *evas EINA_UNUSED, void *info)
520{ 520{
521 Evas_Engine_Info_Wayland_Egl *inf; 521 Evas_Engine_Info_Wayland *inf;
522 522
523 if ((inf = (Evas_Engine_Info_Wayland_Egl *)info)) 523 if ((inf = (Evas_Engine_Info_Wayland *)info))
524 free(inf); 524 free(inf);
525} 525}
526 526
@@ -528,13 +528,13 @@ static int
528eng_setup(Evas *evas, void *info) 528eng_setup(Evas *evas, void *info)
529{ 529{
530 Render_Engine_Swap_Mode swap_mode = MODE_FULL; 530 Render_Engine_Swap_Mode swap_mode = MODE_FULL;
531 Evas_Engine_Info_Wayland_Egl *inf; 531 Evas_Engine_Info_Wayland *inf;
532 Evas_Public_Data *epd; 532 Evas_Public_Data *epd;
533 Render_Engine *re; 533 Render_Engine *re;
534 Outbuf *ob; 534 Outbuf *ob;
535 const char *s; 535 const char *s;
536 536
537 inf = (Evas_Engine_Info_Wayland_Egl *)info; 537 inf = (Evas_Engine_Info_Wayland *)info;
538 epd = efl_data_scope_get(evas, EVAS_CANVAS_CLASS); 538 epd = efl_data_scope_get(evas, EVAS_CANVAS_CLASS);
539 539
540 if ((s = getenv("EVAS_GL_SWAP_MODE"))) 540 if ((s = getenv("EVAS_GL_SWAP_MODE")))