From e148451d4f44feca77b7cd86cb662bd24f613463 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 20 Jan 2014 17:34:12 -0500 Subject: [PATCH] check for pending render updates before doing a black frame --- src/bin/e_comp_object.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c index c504d8bd8..3f382858b 100644 --- a/src/bin/e_comp_object.c +++ b/src/bin/e_comp_object.c @@ -3060,6 +3060,16 @@ e_comp_object_render(Evas_Object *obj) if (!e_pixmap_size_get(cw->ec->pixmap, &pw, &ph)) return EINA_FALSE; //if (e_pixmap_type_get(cw->ec->pixmap) == E_PIXMAP_TYPE_WL) //INF("WL RENDER!"); + + if (!cw->pending_updates) + { + WRN("RENDER [%p]: NO RECTS!", cw->ec); + evas_object_image_data_set(cw->obj, NULL); + EINA_LIST_FOREACH(cw->obj_mirror, l, o) + evas_object_image_data_set(o, NULL); + return EINA_FALSE; + } + { int ow, oh; evas_object_geometry_get(cw->obj, NULL, NULL, &ow, &oh); @@ -3077,15 +3087,6 @@ e_comp_object_render(Evas_Object *obj) } } - if (!cw->pending_updates) - { - WRN("RENDER [%p]: NO RECTS!", cw->ec); - evas_object_image_data_set(cw->obj, NULL); - EINA_LIST_FOREACH(cw->obj_mirror, l, o) - evas_object_image_data_set(o, NULL); - return EINA_FALSE; - } - it = eina_tiler_iterator_new(cw->pending_updates); if (e_pixmap_image_is_argb(cw->ec->pixmap)) {