aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ecore/src/lib/ecore_x/xlib/ecore_x_vsync.c
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/ecore/src/lib/ecore_x/xlib/ecore_x_vsync.c')
-rw-r--r--libraries/ecore/src/lib/ecore_x/xlib/ecore_x_vsync.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/libraries/ecore/src/lib/ecore_x/xlib/ecore_x_vsync.c b/libraries/ecore/src/lib/ecore_x/xlib/ecore_x_vsync.c
index f054298..4296bb2 100644
--- a/libraries/ecore/src/lib/ecore_x/xlib/ecore_x_vsync.c
+++ b/libraries/ecore/src/lib/ecore_x/xlib/ecore_x_vsync.c
@@ -61,40 +61,40 @@ typedef union _drmVBlank
61typedef struct _drmEventContext 61typedef struct _drmEventContext
62{ 62{
63 int version; 63 int version;
64 void (*vblank_handler)(int fd, 64 void (*vblank_handler)(int fd,
65 unsigned int sequence, 65 unsigned int sequence,
66 unsigned int tv_sec, 66 unsigned int tv_sec,
67 unsigned int tv_usec, 67 unsigned int tv_usec,
68 void *user_data); 68 void *user_data);
69 void (*page_flip_handler)(int fd, 69 void (*page_flip_handler)(int fd,
70 unsigned int sequence, 70 unsigned int sequence,
71 unsigned int tv_sec, 71 unsigned int tv_sec,
72 unsigned int tv_usec, 72 unsigned int tv_usec,
73 void *user_data); 73 void *user_data);
74} drmEventContext; 74} drmEventContext;
75 75
76static int (*sym_drmClose)(int fd) = NULL; 76static int (*sym_drmClose)(int fd) = NULL;
77static int (*sym_drmGetMagic)(int fd, 77static int (*sym_drmGetMagic)(int fd,
78 drm_magic_t *magic) = NULL; 78 drm_magic_t *magic) = NULL;
79static int (*sym_drmWaitVBlank)(int fd, 79static int (*sym_drmWaitVBlank)(int fd,
80 drmVBlank *vbl) = NULL; 80 drmVBlank *vbl) = NULL;
81static int (*sym_drmHandleEvent)(int fd, 81static int (*sym_drmHandleEvent)(int fd,
82 drmEventContext *evctx) = NULL; 82 drmEventContext *evctx) = NULL;
83 83
84//// dri 84//// dri
85 85
86static Bool (*sym_DRI2QueryExtension)(Display *display, 86static Bool (*sym_DRI2QueryExtension)(Display *display,
87 int *eventBase, 87 int *eventBase,
88 int *errorBase) = NULL; 88 int *errorBase) = NULL;
89static Bool (*sym_DRI2QueryVersion)(Display *display, 89static Bool (*sym_DRI2QueryVersion)(Display *display,
90 int *major, 90 int *major,
91 int *minor) = NULL; 91 int *minor) = NULL;
92static Bool (*sym_DRI2Connect)(Display *display, 92static Bool (*sym_DRI2Connect)(Display *display,
93 XID window, 93 XID window,
94 char **driverName, 94 char **driverName,
95 char **deviceName) = NULL; 95 char **deviceName) = NULL;
96static Bool (*sym_DRI2Authenticate)(Display *display, 96static Bool (*sym_DRI2Authenticate)(Display *display,
97 XID window, 97 XID window,
98 drm_magic_t magic) = NULL; 98 drm_magic_t magic) = NULL;
99 99
100//// dri/drm data needed 100//// dri/drm data needed
@@ -142,18 +142,18 @@ _dri_drm_tick_end(void *data __UNUSED__)
142} 142}
143 143
144static void 144static void
145_dri_drm_vblank_handler(int fd __UNUSED__, 145_dri_drm_vblank_handler(int fd __UNUSED__,
146 unsigned int frame __UNUSED__, 146 unsigned int frame __UNUSED__,
147 unsigned int sec __UNUSED__, 147 unsigned int sec __UNUSED__,
148 unsigned int usec __UNUSED__, 148 unsigned int usec __UNUSED__,
149 void *data __UNUSED__) 149 void *data __UNUSED__)
150{ 150{
151 ecore_animator_custom_tick(); 151 ecore_animator_custom_tick();
152 if (drm_event_is_busy) _dri_drm_tick_schedule(); 152 if (drm_event_is_busy) _dri_drm_tick_schedule();
153} 153}
154 154
155static Eina_Bool 155static Eina_Bool
156_dri_drm_cb(void *data __UNUSED__, 156_dri_drm_cb(void *data __UNUSED__,
157 Ecore_Fd_Handler *fd_handler __UNUSED__) 157 Ecore_Fd_Handler *fd_handler __UNUSED__)
158{ 158{
159 sym_drmHandleEvent(drm_fd, &drm_evctx); 159 sym_drmHandleEvent(drm_fd, &drm_evctx);