summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2017-08-25 10:49:28 -0700
committerCedric BAIL <cedric@osg.samsung.com>2017-08-25 10:49:28 -0700
commit262ab2bd54f4f7e617a262163ee9297fd3604efd (patch)
tree1a9f438315b0484715fc4487ce8ffa3cb1d3f7ae /src/modules
parent8c16402a2c5ee757a2202f3cfd87d4a87f95dea5 (diff)
evas: refactor wayland_shm backend to have less useless function redirection.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/evas/engines/wayland_shm/evas_engine.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/modules/evas/engines/wayland_shm/evas_engine.c b/src/modules/evas/engines/wayland_shm/evas_engine.c
index c82eb6a..b2cbb75 100644
--- a/src/modules/evas/engines/wayland_shm/evas_engine.c
+++ b/src/modules/evas/engines/wayland_shm/evas_engine.c
@@ -27,10 +27,10 @@ struct _Render_Engine
27 Render_Output_Software_Generic generic; 27 Render_Output_Software_Generic generic;
28}; 28};
29 29
30/* LOCAL FUNCTIONS */ 30static void *
31static Render_Engine * 31eng_output_setup(void *engine EINA_UNUSED, void *info, unsigned int w, unsigned int h)
32_render_engine_swapbuf_setup(int w, int h, Evas_Engine_Info_Wayland *einfo)
33{ 32{
33 Evas_Engine_Info_Wayland *einfo = info;
34 Render_Engine *re; 34 Render_Engine *re;
35 Outbuf *ob; 35 Outbuf *ob;
36 36
@@ -42,7 +42,7 @@ _render_engine_swapbuf_setup(int w, int h, Evas_Engine_Info_Wayland *einfo)
42 ob = _evas_outbuf_setup(w, h, einfo); 42 ob = _evas_outbuf_setup(w, h, einfo);
43 if (!ob) goto err; 43 if (!ob) goto err;
44 44
45 if (!evas_render_engine_software_generic_init(&re->generic, ob, 45 if (!evas_render_engine_software_generic_init(&re->generic, ob,
46 _evas_outbuf_swap_mode_get, 46 _evas_outbuf_swap_mode_get,
47 _evas_outbuf_rotation_get, 47 _evas_outbuf_rotation_get,
48 NULL, 48 NULL,
@@ -99,16 +99,6 @@ eng_output_info_setup(void *info)
99 einfo->render_mode = EVAS_RENDER_MODE_BLOCKING; 99 einfo->render_mode = EVAS_RENDER_MODE_BLOCKING;
100} 100}
101 101
102static void *
103eng_output_setup(void *engine EINA_UNUSED, void *info, unsigned int w, unsigned int h)
104{
105 Evas_Engine_Info_Wayland *einfo = info;
106
107 LOGFN(__FILE__, __LINE__, __FUNCTION__);
108
109 return _render_engine_swapbuf_setup(w, h, einfo);
110}
111
112static void 102static void
113eng_output_resize(void *engine EINA_UNUSED, void *data, int w, int h) 103eng_output_resize(void *engine EINA_UNUSED, void *data, int w, int h)
114{ 104{