Add code to handle idle_flush which will release memory that is unused
authorChristopher Michael <cp.michael@samsung.com>
Thu, 24 Jan 2013 09:21:15 +0000 (09:21 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Thu, 24 Jan 2013 09:21:15 +0000 (09:21 +0000)
by invalid buffers.

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

src/modules/evas/engines/wayland_shm/evas_swapbuf.c

index ed68fdf..93780bb 100644 (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