Add engine output flush code.
authorChristopher Michael <cp.michael@samsung.com>
Thu, 24 Jan 2013 09:17:56 +0000 (09:17 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Thu, 24 Jan 2013 09:17:56 +0000 (09:17 +0000)
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83262

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

index b7b7d23..b89e4de 100644 (file)
@@ -318,7 +318,17 @@ eng_output_redraws_next_update_push(void *data, void *surface, int x, int y, int
 static void 
 eng_output_flush(void *data, Evas_Render_Mode render_mode)
 {
+   Render_Engine *re;
+
+   if (render_mode == EVAS_RENDER_MODE_ASYNC_INIT) return;
 
+   if (!(re = (Render_Engine *)data)) return;
+   re->outbuf_flush(re->ob);
+   if (re->rects)
+     {
+        evas_common_tilebuf_free_render_rects(re->rects);
+        re->rects = NULL;
+     }
 }
 
 static void