add code to handle pending damages during surface commit

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-10-16 11:24:59 -04:00
parent 53f21f997c
commit a6cb5bfe6c
1 changed files with 11 additions and 0 deletions

View File

@ -902,6 +902,7 @@ EINTERN Eina_Bool
e_comp_wl_surface_commit(E_Client *ec)
{
E_Pixmap *ep;
Eina_Rectangle *dmg;
if (!(ep = ec->pixmap)) return EINA_FALSE;
@ -961,5 +962,15 @@ e_comp_wl_surface_commit(E_Client *ec)
/* TODO: Handle pending regions */
/* commit any pending damages */
if ((!ec->comp->nocomp) && (ec->frame))
{
EINA_LIST_FREE(ec->comp_data->pending.damages, dmg)
{
e_comp_object_damage(ec->frame, dmg->x, dmg->y, dmg->w, dmg->h);
eina_rectangle_free(dmg);
}
}
return EINA_TRUE;
}