aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/evas/engines/wayland_shm/evas_swapper.h
blob: 7506793eb7a5d312fc0e5c1b418ef7fdfcd287f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef _EVAS_SWAPPER_H
# define _EVAS_SWAPPER_H

#include "evas_engine.h"

typedef struct _Wl_Swapper Wl_Swapper;

Wl_Swapper *evas_swapper_setup(int dx, int dy, int w, int h, Outbuf_Depth depth, Eina_Bool alpha, struct wl_shm *shm, struct wl_surface *surface);
void evas_swapper_swap(Wl_Swapper *ws, Eina_Rectangle *rects, unsigned int count);
void evas_swapper_free(Wl_Swapper *ws);
void *evas_swapper_buffer_map(Wl_Swapper *ws);
void evas_swapper_buffer_unmap(Wl_Swapper *ws);
int evas_swapper_buffer_state_get(Wl_Swapper *ws);
void evas_swapper_buffer_idle_flush(Wl_Swapper *ws);

#endif