1 /* -*- Mode: c; tab-width: 8; c-basic-offset: 4; indent-tabs-mode: t; -*- */
2 /* cairo - a vector graphics library with display and print output
4 * Copyright © 2002 University of Southern California
5 * Copyright © 2005 Red Hat, Inc.
6 * Copyright © 2011 Intel Corporation
8 * This library is free software; you can redistribute it and/or
9 * modify it either under the terms of the GNU Lesser General Public
10 * License version 2.1 as published by the Free Software Foundation
11 * (the "LGPL") or, at your option, under the terms of the Mozilla
12 * Public License Version 1.1 (the "MPL"). If you do not alter this
13 * notice, a recipient may use your version of this file under either
14 * the MPL or the LGPL.
16 * You should have received a copy of the LGPL along with this library
17 * in the file COPYING-LGPL-2.1; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA
19 * You should have received a copy of the MPL along with this library
20 * in the file COPYING-MPL-1.1
22 * The contents of this file are subject to the Mozilla Public License
23 * Version 1.1 (the "License"); you may not use this file except in
24 * compliance with the License. You may obtain a copy of the License at
25 * http://www.mozilla.org/MPL/
27 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY
28 * OF ANY KIND, either express or implied. See the LGPL or the MPL for
29 * the specific language governing rights and limitations.
31 * The Original Code is the cairo graphics library.
33 * The Initial Developer of the Original Code is University of Southern
37 * Carl D. Worth <cworth@cworth.org>
38 * Joonas Pihlaja <jpihlaja@cc.helsinki.fi>
39 * Chris Wilson <chris@chris-wilson.co.uk>
44 #include "cairo-compositor-private.h"
45 #include "cairo-surface-fallback-private.h"
48 _cairo_surface_fallback_paint (void *surface
,
50 const cairo_pattern_t
*source
,
51 const cairo_clip_t
*clip
)
53 return _cairo_compositor_paint (&_cairo_fallback_compositor
,
54 surface
, op
, source
, clip
);
58 _cairo_surface_fallback_mask (void *surface
,
60 const cairo_pattern_t
*source
,
61 const cairo_pattern_t
*mask
,
62 const cairo_clip_t
*clip
)
64 return _cairo_compositor_mask (&_cairo_fallback_compositor
,
65 surface
, op
, source
, mask
, clip
);
69 _cairo_surface_fallback_stroke (void *surface
,
71 const cairo_pattern_t
*source
,
72 const cairo_path_fixed_t
*path
,
73 const cairo_stroke_style_t
*style
,
74 const cairo_matrix_t
*ctm
,
75 const cairo_matrix_t
*ctm_inverse
,
77 cairo_antialias_t antialias
,
78 const cairo_clip_t
*clip
)
80 return _cairo_compositor_stroke (&_cairo_fallback_compositor
,
81 surface
, op
, source
, path
,
82 style
, ctm
,ctm_inverse
,
83 tolerance
, antialias
, clip
);
87 _cairo_surface_fallback_fill (void *surface
,
89 const cairo_pattern_t
*source
,
90 const cairo_path_fixed_t
*path
,
91 cairo_fill_rule_t fill_rule
,
93 cairo_antialias_t antialias
,
94 const cairo_clip_t
*clip
)
96 return _cairo_compositor_fill (&_cairo_fallback_compositor
,
97 surface
, op
, source
, path
,
98 fill_rule
, tolerance
, antialias
,
103 _cairo_surface_fallback_glyphs (void *surface
,
105 const cairo_pattern_t
*source
,
106 cairo_glyph_t
*glyphs
,
108 cairo_scaled_font_t
*scaled_font
,
109 const cairo_clip_t
*clip
)
111 return _cairo_compositor_glyphs (&_cairo_fallback_compositor
,
113 glyphs
, num_glyphs
, scaled_font
,