summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/wayland_egl/evas_engine.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2017-05-12 15:03:05 -0700
committerCedric BAIL <cedric@osg.samsung.com>2017-05-12 15:24:45 -0700
commit35e54acc4678dd50bafbb86a015892b2937a97c7 (patch)
tree8fc8fd31202d53fdabee21b8d1763c41a9c9fbb8 /src/modules/evas/engines/wayland_egl/evas_engine.c
parentad2ba804c69e38cc925e80ace843fe400e303319 (diff)
evas: stat introducing a concept of engine and output in the backend.
Diffstat (limited to 'src/modules/evas/engines/wayland_egl/evas_engine.c')
-rw-r--r--src/modules/evas/engines/wayland_egl/evas_engine.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/modules/evas/engines/wayland_egl/evas_engine.c b/src/modules/evas/engines/wayland_egl/evas_engine.c
index d337da3..0496f6b 100644
--- a/src/modules/evas/engines/wayland_egl/evas_engine.c
+++ b/src/modules/evas/engines/wayland_egl/evas_engine.c
@@ -569,7 +569,7 @@ _eng_merge_mode_get(void)
569} 569}
570 570
571static void * 571static void *
572eng_setup(void *info, unsigned int w, unsigned int h) 572eng_setup(void *engine EINA_UNUSED, void *info, unsigned int w, unsigned int h)
573{ 573{
574 Evas_Engine_Info_Wayland *inf = info; 574 Evas_Engine_Info_Wayland *inf = info;
575 Render_Engine *re; 575 Render_Engine *re;
@@ -658,7 +658,7 @@ ob_err:
658} 658}
659 659
660static int 660static int
661eng_update(void *data, void *info, unsigned int w, unsigned int h) 661eng_update(void *engine EINA_UNUSED, void *data, void *info, unsigned int w, unsigned int h)
662{ 662{
663 Evas_Engine_Info_Wayland *inf = info; 663 Evas_Engine_Info_Wayland *inf = info;
664 Render_Engine *re = data; 664 Render_Engine *re = data;
@@ -755,18 +755,18 @@ ob_err:
755} 755}
756 756
757static Eina_Bool 757static Eina_Bool
758eng_canvas_alpha_get(void *data) 758eng_canvas_alpha_get(void *engine)
759{ 759{
760 Render_Engine *re; 760 Render_Engine *re;
761 761
762 if ((re = (Render_Engine *)data)) 762 if ((re = (Render_Engine *)engine))
763 return re->generic.software.ob->alpha; 763 return re->generic.software.ob->alpha;
764 764
765 return EINA_FALSE; 765 return EINA_FALSE;
766} 766}
767 767
768static void 768static void
769eng_output_free(void *data) 769eng_output_free(void *engine EINA_UNUSED, void *data)
770{ 770{
771 Render_Engine *re; 771 Render_Engine *re;
772 772
@@ -791,7 +791,7 @@ eng_output_free(void *data)
791} 791}
792 792
793static void 793static void
794eng_output_dump(void *data) 794eng_output_dump(void *engine EINA_UNUSED, void *data)
795{ 795{
796 Outbuf *ob; 796 Outbuf *ob;
797 Render_Engine *re; 797 Render_Engine *re;
@@ -999,7 +999,7 @@ _native_cb_yinvert(void *image)
999} 999}
1000 1000
1001static int 1001static int
1002eng_image_native_init(void *data EINA_UNUSED, Evas_Native_Surface_Type type) 1002eng_image_native_init(void *engine EINA_UNUSED, Evas_Native_Surface_Type type)
1003{ 1003{
1004 switch (type) 1004 switch (type)
1005 { 1005 {
@@ -1021,7 +1021,7 @@ eng_image_native_init(void *data EINA_UNUSED, Evas_Native_Surface_Type type)
1021} 1021}
1022 1022
1023static void 1023static void
1024eng_image_native_shutdown(void *data EINA_UNUSED, Evas_Native_Surface_Type type) 1024eng_image_native_shutdown(void *engine EINA_UNUSED, Evas_Native_Surface_Type type)
1025{ 1025{
1026 switch (type) 1026 switch (type)
1027 { 1027 {
@@ -1043,7 +1043,7 @@ eng_image_native_shutdown(void *data EINA_UNUSED, Evas_Native_Surface_Type type)
1043} 1043}
1044 1044
1045static void * 1045static void *
1046eng_image_native_set(void *data, void *image, void *native) 1046eng_image_native_set(void *engine, void *image, void *native)
1047{ 1047{
1048 Render_Engine *re; 1048 Render_Engine *re;
1049 Outbuf *ob; 1049 Outbuf *ob;
@@ -1055,7 +1055,7 @@ eng_image_native_set(void *data, void *image, void *native)
1055 void *buffer = NULL; 1055 void *buffer = NULL;
1056 void *wlid, *wl_buf = NULL; 1056 void *wlid, *wl_buf = NULL;
1057 1057
1058 if (!(re = (Render_Engine *)data)) return NULL; 1058 if (!(re = (Render_Engine *)engine)) return NULL;
1059 if (!(ob = eng_get_ob(re))) return NULL; 1059 if (!(ob = eng_get_ob(re))) return NULL;
1060 1060
1061 ns = native; 1061 ns = native;