blob: 06eac5a291978b7712fe7d6a26b4d9e6d9e03f80 [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
22blur_surface(cairo_surface_t *surface);
23
24#endif