1 /* Copyright (C) 2008 The cairomm Development Team
2  *
3  * This library is free software; you can redistribute it and/or
4  * modify it under the terms of the GNU Library General Public
5  * License as published by the Free Software Foundation; either
6  * version 2 of the License, or (at your option) any later version.
7  *
8  * This library is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11  * Library General Public License for more details.
12  *
13  * You should have received a copy of the GNU Library General Public
14  * License along with this library; if not, write to the Free Software
15  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
16  * 02110-1301, USA.
17  */
18 
19 #include <cairommconfig.h>
20 #include <cairomm/context_private.h>
21 #include <cairomm/quartz_surface.h>
22 
23 namespace Cairo
24 {
25 
26 namespace Private
27 {
28 
wrap_surface_quartz(cairo_surface_t * surface)29 RefPtr<Surface> wrap_surface_quartz(cairo_surface_t* surface)
30 {
31 #if CAIRO_HAS_QUARTZ_SURFACE
32     return RefPtr<QuartzSurface>(new QuartzSurface(surface, false /* does not have reference */));
33 #else
34     return RefPtr<Surface>(new Surface(surface, false /* does not have reference */));
35 #endif
36 }
37 
38 } // namespace Private
39 
40 } // namespace Cairo
41 
42 // vim: ts=2 sw=2 et
43