aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_evas/ecore_evas_ews.c
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/ecore_evas_ews.c
parentelm_cnp: Fix typo (diff)
downloadefl-688013e669cd8740832c64a2cd34b041522c18bc.tar.gz
ecore_evas: first step into refactoring ews backend.
Diffstat (limited to 'src/lib/ecore_evas/ecore_evas_ews.c')
-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)
static int
_ecore_evas_ews_render(Ecore_Evas *ee)
{
- Eina_List *updates = NULL, *l, *ll;
- Ecore_Evas *ee2;
+ Eina_List *updates = NULL, *l;
Eina_Rectangle *r;
- int w, h, rend = 0;
void *pixels;
-
- EINA_LIST_FOREACH(ee->sub_ecore_evas, ll, ee2)
- {
- if (ee2->func.fn_pre_render) ee2->func.fn_pre_render(ee2);
- rend |= _ecore_evas_ews_render(ee2);
- if (ee2->func.fn_post_render) ee2->func.fn_post_render(ee2);
- }
+ int w, h, rend;
+
+ rend = ecore_evas_render_prepare(ee);
evas_object_image_size_get(ee->engine.ews.image, &w, &h);
if ((w != ee->w) || (h != ee->h))
@@ -575,7 +569,7 @@ _ecore_evas_ews_render(Ecore_Evas *ee)
updates = evas_render_updates(ee->evas);
}
evas_object_image_data_set(ee->engine.ews.image, pixels);
-
+
EINA_LIST_FOREACH(updates, l, r)
evas_object_image_data_update_add(ee->engine.ews.image,
r->x, r->y, r->w, r->h);