summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/wayland_shm/evas_shm.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-08-06 09:52:16 -0400
committerChris Michael <cp.michael@samsung.com>2015-08-20 14:21:02 -0400
commit65578034efcc9dbb7759ff9b32dfe859bda525e0 (patch)
tree95857bfe9e317b5e6cec3fbb5f83e638f763e404 /src/modules/evas/engines/wayland_shm/evas_shm.c
parent67ef1b11ff05a8c09aa6975f29bc28584ce15187 (diff)
Add experimental implementation of custom animator ticks
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/modules/evas/engines/wayland_shm/evas_shm.c')
-rw-r--r--src/modules/evas/engines/wayland_shm/evas_shm.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/modules/evas/engines/wayland_shm/evas_shm.c b/src/modules/evas/engines/wayland_shm/evas_shm.c
index 1d8f594e21..1e730a4e72 100644
--- a/src/modules/evas/engines/wayland_shm/evas_shm.c
+++ b/src/modules/evas/engines/wayland_shm/evas_shm.c
@@ -134,22 +134,22 @@ _shm_pool_reset(Shm_Pool *pool)
134 pool->used = 0; 134 pool->used = 0;
135} 135}
136 136
137static void 137/* static void */
138_shm_frame_release(void *data, struct wl_callback *callback, uint32_t timestamp EINA_UNUSED) 138/* _shm_frame_release(void *data, struct wl_callback *callback, uint32_t timestamp EINA_UNUSED) */
139{ 139/* { */
140 Shm_Surface *surf; 140/* Shm_Surface *surf; */
141 141
142 LOGFN(__FILE__, __LINE__, __FUNCTION__); 142/* LOGFN(__FILE__, __LINE__, __FUNCTION__); */
143 143
144 if (!(surf = data)) return; 144/* if (!(surf = data)) return; */
145 145
146 wl_callback_destroy(callback); 146/* wl_callback_destroy(callback); */
147} 147/* } */
148 148
149static const struct wl_callback_listener _shm_frame_listener = 149/* static const struct wl_callback_listener _shm_frame_listener = */
150{ 150/* { */
151 _shm_frame_release 151/* _shm_frame_release */
152}; 152/* }; */
153 153
154static Shm_Data * 154static Shm_Data *
155_shm_data_create_from_pool(Shm_Pool *pool, int w, int h, Eina_Bool alpha) 155_shm_data_create_from_pool(Shm_Pool *pool, int w, int h, Eina_Bool alpha)
@@ -488,7 +488,7 @@ _evas_shm_surface_data_get(Shm_Surface *surface, int *w, int *h)
488void 488void
489_evas_shm_surface_post(Shm_Surface *surface, Eina_Rectangle *rects, unsigned int count) 489_evas_shm_surface_post(Shm_Surface *surface, Eina_Rectangle *rects, unsigned int count)
490{ 490{
491 struct wl_callback *frame_cb; 491 /* struct wl_callback *frame_cb; */
492 Shm_Leaf *leaf; 492 Shm_Leaf *leaf;
493 493
494 LOGFN(__FILE__, __LINE__, __FUNCTION__); 494 LOGFN(__FILE__, __LINE__, __FUNCTION__);
@@ -512,8 +512,8 @@ _evas_shm_surface_post(Shm_Surface *surface, Eina_Rectangle *rects, unsigned int
512 else 512 else
513 wl_surface_damage(surface->surface, 0, 0, leaf->w, leaf->h); 513 wl_surface_damage(surface->surface, 0, 0, leaf->w, leaf->h);
514 514
515 frame_cb = wl_surface_frame(surface->surface); 515 /* frame_cb = wl_surface_frame(surface->surface); */
516 wl_callback_add_listener(frame_cb, &_shm_frame_listener, surface); 516 /* wl_callback_add_listener(frame_cb, &_shm_frame_listener, surface); */
517 517
518 wl_surface_commit(surface->surface); 518 wl_surface_commit(surface->surface);
519 519