summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/ecore_wl2_private.h
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-11-30 12:48:08 -0600
committerDerek Foreman <derekf@osg.samsung.com>2017-12-01 10:58:44 -0600
commit8a3b983c53cf41be5d8a8cb24aa18a83d8038bd8 (patch)
tree9d762a67a115a4db2c58bf6eb8fa69444db94dde /src/lib/ecore_wl2/ecore_wl2_private.h
parentdd5edfae03f23d45126404d3b459e0abbd94a54c (diff)
downloadefl-8a3b983c53cf41be5d8a8cb24aa18a83d8038bd8.tar.gz
ecore_wl2 wayland_shm: Move surface functions into ecore_wl2
Finish pushing these all into ecore_wl2
Diffstat (limited to 'src/lib/ecore_wl2/ecore_wl2_private.h')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_private.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_private.h b/src/lib/ecore_wl2/ecore_wl2_private.h
index b1df67f302..8b87cffe2c 100644
--- a/src/lib/ecore_wl2/ecore_wl2_private.h
+++ b/src/lib/ecore_wl2/ecore_wl2_private.h
@@ -523,6 +523,24 @@ typedef struct Ecore_Wl2_Event_Window_WWW_Drag
Eina_Bool dragging;
} Ecore_Wl2_Event_Window_WWW_Drag;
+typedef struct _Ecore_Wl2_Surface
+{
+ Ecore_Wl2_Window *wl2_win;
+ Ecore_Wl2_Buffer *current;
+ Eina_List *buffers;
+
+ int w, h;
+ Eina_Bool alpha : 1;
+ struct
+ {
+ void (*destroy)(Ecore_Wl2_Surface *surface);
+ void (*reconfigure)(Ecore_Wl2_Surface *surface, int w, int h, uint32_t flags, Eina_Bool force);
+ void *(*data_get)(Ecore_Wl2_Surface *surface, int *w, int *h);
+ int (*assign)(Ecore_Wl2_Surface *surface);
+ void (*post)(Ecore_Wl2_Surface *surface, Eina_Rectangle *rects, unsigned int count);
+ } funcs;
+} Ecore_Wl2_Surface;
+
Ecore_Wl2_Window *_ecore_wl2_display_window_surface_find(Ecore_Wl2_Display *display, struct wl_surface *wl_surface);
void _display_event_free(void *d, void *event EINA_UNUSED);