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

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

index 1231057..b7b7d23 100644 (file)
@@ -302,7 +302,17 @@ eng_output_redraws_next_update_get(void *data, int *x, int *y, int *w, int *h, i
 static void 
 eng_output_redraws_next_update_push(void *data, void *surface, int x, int y, int w, int h, Evas_Render_Mode render_mode)
 {
+   Render_Engine *re;
+
+   if (render_mode == EVAS_RENDER_MODE_ASYNC_INIT) return;
 
+   if (!(re = (Render_Engine *)data)) return;
+#if defined(BUILD_PIPE_RENDER)
+   evas_common_pipe_map_begin(surface);
+#endif
+   re->outbuf_update_region_push(re->ob, surface, x, y, w, h);
+   re->outbuf_update_region_free(re->ob, surface);
+   evas_common_cpu_end_opt()
 }
 
 static void