check for pending render updates before doing a black frame

This commit is contained in:
Mike Blumenkrantz 2014-01-20 17:34:12 -05:00
parent 36edca0773
commit e148451d4f
1 changed files with 10 additions and 9 deletions

View File

@ -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))
{