Add code to create the output buffer of the render engine and set the
authorChristopher Michael <cp.michael@samsung.com>
Thu, 24 Jan 2013 09:16:55 +0000 (09:16 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Thu, 24 Jan 2013 09:16:55 +0000 (09:16 +0000)
render_engine functions.

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

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

index 1ff56e1f0833a0af3b209124af8b5158352fa0f9..1797b5ff67a2e6a6e48cd291d7f8800a2304f03a 100644 (file)
@@ -3,6 +3,7 @@
 #include "Evas_Engine_Wayland_Shm.h"
 #include "evas_engine.h"
 #include "evas_swapbuf.h"
+#include "evas_outbuf.h"
 
 /* local structures */
 typedef struct _Render_Engine Render_Engine;
@@ -76,6 +77,22 @@ _output_engine_setup(int w, int h, unsigned int rotation, unsigned int depth, Ei
    /* set tile size for the tile buffer */
    evas_common_tilebuf_set_tile_size(re->tb, TILESIZE, TILESIZE);
 
+   if (try_swap)
+     {
+        if ((re->ob = evas_swapbuf_setup(w, h, rotation, depth, 
+                                         destination_alpha, wl_shm, 
+                                         wl_surface)))
+          {
+             re->outbuf_free = evas_swapbuf_free;
+             re->outbuf_reconfigure = evas_swapbuf_reconfigure;
+             re->outbuf_update_region_new = evas_swapbuf_update_region_new;
+             re->outbuf_update_region_push = evas_swapbuf_update_region_push;
+             re->outbuf_update_region_free = evas_swapbuf_update_region_free;
+             re->outbuf_flush = evas_swapbuf_flush;
+             re->outbuf_idle_flush = evas_swapbuf_idle_flush;
+          }
+     }
+
    /* return allocated render engine */
    return re;
 }