summaryrefslogtreecommitdiff
path: root/libs/cairo/src/cairo-skia.h
blob: 89bd2713e1b88254a2d96d77d13a3ac93b3ffa7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef CAIRO_SKIA_H
#define CAIRO_SKIA_H

#include "cairo.h"

#if CAIRO_HAS_SKIA_SURFACE

CAIRO_BEGIN_DECLS

cairo_public cairo_surface_t *
cairo_skia_surface_create (cairo_format_t format,
			   int width,
			   int height);

cairo_public cairo_surface_t *
cairo_skia_surface_create_for_data (unsigned char *data,
				    cairo_format_t format,
				    int width,
				    int height,
				    int stride);

cairo_public unsigned char *
cairo_skia_surface_get_data (cairo_surface_t *surface);

cairo_public cairo_format_t
cairo_skia_surface_get_format (cairo_surface_t *surface);

cairo_public int
cairo_skia_surface_get_width (cairo_surface_t *surface);

cairo_public int
cairo_skia_surface_get_height (cairo_surface_t *surface);

cairo_public int
cairo_skia_surface_get_stride (cairo_surface_t *surface);

cairo_public cairo_surface_t *
cairo_skia_surface_get_image (cairo_surface_t *surface);

CAIRO_END_DECLS

#else

# error Cairo was not compiled with support for the Skia backend

#endif

#endif