summaryrefslogtreecommitdiff
path: root/src/lib/ecore_evas
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2017-05-08 11:00:38 -0700
committerCedric BAIL <cedric@osg.samsung.com>2017-05-08 11:00:38 -0700
commit688013e669cd8740832c64a2cd34b041522c18bc (patch)
tree5d7085844950b73d1c7d669f02af6263d124fd10 /src/lib/ecore_evas
parent13a9a508cec5765e2265670b5f3d7c8ebbdcedc0 (diff)
ecore_evas: first step into refactoring ews backend.
Diffstat (limited to 'src/lib/ecore_evas')
-rw-r--r--src/lib/ecore_evas/ecore_evas_ews.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/lib/ecore_evas/ecore_evas_ews.c b/src/lib/ecore_evas/ecore_evas_ews.c
index d67fa16563..56dd640133 100644
--- a/src/lib/ecore_evas/ecore_evas_ews.c
+++ b/src/lib/ecore_evas/ecore_evas_ews.c
@@ -552,18 +552,12 @@ _ecore_evas_ews_transparent_set(Ecore_Evas *ee, int val)
552static int 552static int
553_ecore_evas_ews_render(Ecore_Evas *ee) 553_ecore_evas_ews_render(Ecore_Evas *ee)
554{ 554{
555 Eina_List *updates = NULL, *l, *ll; 555 Eina_List *updates = NULL, *l;
556 Ecore_Evas *ee2;
557 Eina_Rectangle *r; 556 Eina_Rectangle *r;
558 int w, h, rend = 0;
559 void *pixels; 557 void *pixels;
560 558 int w, h, rend;
561 EINA_LIST_FOREACH(ee->sub_ecore_evas, ll, ee2) 559
562 { 560 rend = ecore_evas_render_prepare(ee);
563 if (ee2->func.fn_pre_render) ee2->func.fn_pre_render(ee2);
564 rend |= _ecore_evas_ews_render(ee2);
565 if (ee2->func.fn_post_render) ee2->func.fn_post_render(ee2);
566 }
567 561
568 evas_object_image_size_get(ee->engine.ews.image, &w, &h); 562 evas_object_image_size_get(ee->engine.ews.image, &w, &h);
569 if ((w != ee->w) || (h != ee->h)) 563 if ((w != ee->w) || (h != ee->h))
@@ -575,7 +569,7 @@ _ecore_evas_ews_render(Ecore_Evas *ee)
575 updates = evas_render_updates(ee->evas); 569 updates = evas_render_updates(ee->evas);
576 } 570 }
577 evas_object_image_data_set(ee->engine.ews.image, pixels); 571 evas_object_image_data_set(ee->engine.ews.image, pixels);
578 572
579 EINA_LIST_FOREACH(updates, l, r) 573 EINA_LIST_FOREACH(updates, l, r)
580 evas_object_image_data_update_add(ee->engine.ews.image, 574 evas_object_image_data_update_add(ee->engine.ews.image,
581 r->x, r->y, r->w, r->h); 575 r->x, r->y, r->w, r->h);