Add code to handle idle_flush which will release memory that is unused

by invalid buffers.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83282
This commit is contained in:
Christopher Michael 2013-01-24 09:21:15 +00:00 committed by Christopher Michael
parent f785c9fc21
commit 913d0cd170
1 changed files with 8 additions and 1 deletions

View File

@ -433,9 +433,16 @@ evas_swapbuf_flush(Outbuf *ob)
}
void
evas_swapbuf_idle_flush(Outbuf *ob EINA_UNUSED)
evas_swapbuf_idle_flush(Outbuf *ob)
{
/* check for valid output buffer */
if (!ob) return;
/* check for valid swapper */
if (!ob->priv.swapper) return;
/* tell the swapper to release any buffers that have been rendered */
evas_swapper_buffer_idle_flush(ob->priv.swapper);
}
int