forked from enlightenment/efl
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:
parent
f785c9fc21
commit
913d0cd170
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue