Factor out common cairo code, add blur function.
[profile/ivi/wayland.git] / cairo-util.h
1 #ifndef _CAIRO_UTIL_H
2 #define _CAIRO_UTIL_H
3
4 struct buffer {
5         int width, height, stride;
6         uint32_t name, handle;
7 };
8
9 struct buffer *
10 buffer_create(int fd, int width, int height, int stride);
11
12 int
13 buffer_destroy(struct buffer *buffer, int fd);
14
15 int
16 buffer_data(struct buffer *buffer, int fd, void *data);
17
18 struct buffer *
19 buffer_create_from_cairo_surface(int fd, cairo_surface_t *surface);
20
21 void
22 blur_surface(cairo_surface_t *surface);
23
24 #endif