summaryrefslogtreecommitdiff
path: root/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
diff options
context:
space:
mode:
authorCedric Bail <cedric@osg.samsung.com>2017-05-05 17:16:03 -0700
committerCedric Bail <cedric@osg.samsung.com>2017-05-05 17:55:06 -0700
commit9129adc99370e6348a1a858f0eb61dbd29a46bc7 (patch)
tree45cc7dd6486dcad3e5d5979fc320c2126756c9be /src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
parentfe316636fd13886c7cb70b3ec334c6bd093525a8 (diff)
ecore_evas: first step into refactoring drm backend.
Diffstat (limited to 'src/modules/ecore_evas/engines/drm/ecore_evas_drm.c')
-rw-r--r--src/modules/ecore_evas/engines/drm/ecore_evas_drm.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
index 75613bca6e..3a8524d144 100644
--- a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
+++ b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
@@ -228,27 +228,18 @@ static int
228_drm_render(Ecore_Evas *ee) 228_drm_render(Ecore_Evas *ee)
229{ 229{
230 int rend = 0; 230 int rend = 0;
231 Eina_List *l;
232 Ecore_Evas *ee2;
233 231
234 if (ee->in_async_render) return 0; 232 if (ee->in_async_render) return 0;
235 233
234 rend = ecore_evas_render_prepare(ee);
235
236 if (!ee->visible) 236 if (!ee->visible)
237 { 237 {
238 evas_norender(ee->evas); 238 evas_norender(ee->evas);
239 ee->func.fn_post_render(ee);
239 return 0; 240 return 0;
240 } 241 }
241 242
242 EINA_LIST_FOREACH(ee->sub_ecore_evas, l, ee2)
243 {
244 if (ee2->func.fn_pre_render) ee2->func.fn_pre_render(ee2);
245 if (ee2->engine.func->fn_render)
246 rend |= ee2->engine.func->fn_render(ee2);
247 if (ee2->func.fn_post_render) ee2->func.fn_post_render(ee2);
248 }
249
250 if (ee->func.fn_pre_render) ee->func.fn_pre_render(ee);
251
252 if (!ee->can_async_render) 243 if (!ee->can_async_render)
253 { 244 {
254 Eina_List *updates; 245 Eina_List *updates;