From fd10050f53a79574fb006af1ba25d717d8068644 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Thu, 24 Jan 2013 09:14:10 +0000 Subject: [PATCH] Add intial Outbuf structure. Signed-off-by: Christopher Michael SVN revision: 83216 --- .../evas/engines/wayland_shm/evas_engine.h | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/src/modules/evas/engines/wayland_shm/evas_engine.h b/src/modules/evas/engines/wayland_shm/evas_engine.h index 3ed1a06689..b6121afaee 100644 --- a/src/modules/evas/engines/wayland_shm/evas_engine.h +++ b/src/modules/evas/engines/wayland_shm/evas_engine.h @@ -31,6 +31,7 @@ extern int _evas_engine_way_shm_log_dom; # include typedef enum _Outbuf_Depth Outbuf_Depth; +typedef struct _Outbuf Outbuf; enum _Outbuf_Depth { @@ -47,3 +48,37 @@ enum MODE_DOUBLE, MODE_TRIPLE }; + +struct _Outbuf +{ + int w, h; + unsigned int rotation; + Outbuf_Depth depth; + + struct + { + struct + { + /* wayland shared memory object */ + struct wl_shm *shm; + struct wl_surface *surface; + } wl; + + /* swapper */ + void *swapper; + + /* one big buffer for updates. flushed on idle_flush */ + RGBA_Image *onebuf; + Eina_Array onebuf_regions; + + /* a list of pending regions to write out */ + Eina_List *pending_writes; + + /* list of previous frame pending regions to write out */ + Eina_List *prev_pending_writes; + + Eina_Bool destination_alpha : 1; + } priv; +}; + +#endif -- 2.34.1