blob: cc2dc654ded22fa7974d43be569ac91f3d3d2882 [file] [log] [blame]
Kristian Høgsberg2f2cfae2008-11-08 22:46:30 -05001#ifndef _CAIRO_UTIL_H
2#define _CAIRO_UTIL_H
3
4struct buffer {
5 int width, height, stride;
6 uint32_t name, handle;
7};
8
9struct buffer *
10buffer_create(int fd, int width, int height, int stride);
11
12int
13buffer_destroy(struct buffer *buffer, int fd);
14
15int
16buffer_data(struct buffer *buffer, int fd, void *data);
17
18struct buffer *
19buffer_create_from_cairo_surface(int fd, cairo_surface_t *surface);
20
21void
Kristian Høgsberg10bdd292008-11-08 23:27:27 -050022blur_surface(cairo_surface_t *surface, int margin);
Kristian Høgsberg2f2cfae2008-11-08 22:46:30 -050023
24#endif