summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2013-02-27 13:36:26 +0000
committerChristopher Michael <cp.michael@samsung.com>2013-02-27 13:36:26 +0000
commitb2e0c9efd9a86b864102a4c18560ccc264fe52a8 (patch)
tree3a7d849642fcac409b3894bd70d789fb31146866
parent12a6ef11bb0a70e6206cf7ebccd901438606267f (diff)
Add new header file for Evas Wayland Egl engine.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
-rw-r--r--src/modules/evas/engines/wayland_egl/Evas_Engine_Wayland_Egl.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/modules/evas/engines/wayland_egl/Evas_Engine_Wayland_Egl.h b/src/modules/evas/engines/wayland_egl/Evas_Engine_Wayland_Egl.h
new file mode 100644
index 0000000000..9d5fd7c8a7
--- /dev/null
+++ b/src/modules/evas/engines/wayland_egl/Evas_Engine_Wayland_Egl.h
@@ -0,0 +1,47 @@
1#ifndef _EVAS_ENGINE_WAYLAND_EGL_H
2# define _EVAS_ENGINE_WAYLAND_EGL_H
3
4# include <wayland-client.h>
5
6# define EVAS_ENGINE_WAYLAND_EGL_SWAP_MODE_EXISTS 1
7
8typedef enum _Evas_Engine_Info_Wayland_Egl_Swap_Mode
9{
10 EVAS_ENGINE_WAYLAND_EGL_SWAP_MODE_AUTO = 0,
11 EVAS_ENGINE_WAYLAND_EGL_SWAP_MODE_FULL = 1,
12 EVAS_ENGINE_WAYLAND_EGL_SWAP_MODE_COPY = 2,
13 EVAS_ENGINE_WAYLAND_EGL_SWAP_MODE_DOUBLE = 3,
14 EVAS_ENGINE_WAYLAND_EGL_SWAP_MODE_TRIPLE = 4
15} Evas_Engine_Info_Wayland_Egl_Swap_Mode;
16
17typedef struct _Evas_Engine_Info_Wayland_Egl Evas_Engine_Info_Wayland_Egl;
18
19struct _Evas_Engine_Info_Wayland_Egl
20{
21 Evas_Engine_Info magic;
22
23 struct
24 {
25 struct wl_display *display;
26 struct wl_surface *surface;
27 int rotation;
28 int edges;
29 Eina_Bool destination_alpha : 1;
30 } info;
31
32 struct
33 {
34 void (*pre_swap) (void *data, Evas *evas);
35 void (*post_swap) (void *data, Evas *evas);
36 void *data;
37 } callback;
38
39 Evas_Engine_Render_Mode render_mode;
40
41 Eina_Bool vsync : 1;
42 Eina_Bool indirect : 1;
43
44 unsigned char swap_mode : 4;
45};
46
47#endif