mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 01:48:07 +02:00
Split cairo-surface-private into struct+inlines
References: https://bugs.freedesktop.org/show_bug.cgi?id=48577 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
6736d0bf00
commit
f3623cf022
4 changed files with 54 additions and 9 deletions
|
|
@ -104,6 +104,7 @@ cairo_private = \
|
|||
cairo-spans-private.h \
|
||||
cairo-spans-compositor-private.h \
|
||||
cairo-stroke-dash-private.h \
|
||||
cairo-surface-inline.h \
|
||||
cairo-surface-private.h \
|
||||
cairo-surface-backend-private.h \
|
||||
cairo-surface-clipper-private.h \
|
||||
|
|
|
|||
52
src/cairo-surface-inline.h
Normal file
52
src/cairo-surface-inline.h
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
/* cairo - a vector graphics library with display and print output
|
||||
*
|
||||
* Copyright © 2002 University of Southern California
|
||||
* Copyright © 2005 Red Hat, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it either under the terms of the GNU Lesser General Public
|
||||
* License version 2.1 as published by the Free Software Foundation
|
||||
* (the "LGPL") or, at your option, under the terms of the Mozilla
|
||||
* Public License Version 1.1 (the "MPL"). If you do not alter this
|
||||
* notice, a recipient may use your version of this file under either
|
||||
* the MPL or the LGPL.
|
||||
*
|
||||
* You should have received a copy of the LGPL along with this library
|
||||
* in the file COPYING-LGPL-2.1; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA
|
||||
* You should have received a copy of the MPL along with this library
|
||||
* in the file COPYING-MPL-1.1
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla Public License
|
||||
* Version 1.1 (the "License"); you may not use this file except in
|
||||
* compliance with the License. You may obtain a copy of the License at
|
||||
* http://www.mozilla.org/MPL/
|
||||
*
|
||||
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY
|
||||
* OF ANY KIND, either express or implied. See the LGPL or the MPL for
|
||||
* the specific language governing rights and limitations.
|
||||
*
|
||||
* The Original Code is the cairo graphics library.
|
||||
*
|
||||
* The Initial Developer of the Original Code is University of Southern
|
||||
* California.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Carl D. Worth <cworth@cworth.org>
|
||||
*/
|
||||
|
||||
#ifndef CAIRO_SURFACE_INLINE_H
|
||||
#define CAIRO_SURFACE_INLINE_H
|
||||
|
||||
#include "cairo-surface-private.h"
|
||||
|
||||
static inline cairo_status_t
|
||||
_cairo_surface_flush (cairo_surface_t *surface)
|
||||
{
|
||||
cairo_status_t status = CAIRO_STATUS_SUCCESS;
|
||||
if (surface->backend->flush)
|
||||
status = surface->backend->flush (surface);
|
||||
return status;
|
||||
}
|
||||
|
||||
#endif /* CAIRO_SURFACE_INLINE_H */
|
||||
|
|
@ -111,13 +111,4 @@ cairo_private cairo_surface_t *
|
|||
_cairo_surface_get_source (cairo_surface_t *surface,
|
||||
cairo_rectangle_int_t *extents);
|
||||
|
||||
static inline cairo_status_t
|
||||
_cairo_surface_flush (cairo_surface_t *surface)
|
||||
{
|
||||
cairo_status_t status = CAIRO_STATUS_SUCCESS;
|
||||
if (surface->backend->flush)
|
||||
status = surface->backend->flush (surface);
|
||||
return status;
|
||||
}
|
||||
|
||||
#endif /* CAIRO_SURFACE_PRIVATE_H */
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@
|
|||
#include "cairo-image-surface-private.h"
|
||||
#include "cairo-pattern-private.h"
|
||||
#include "cairo-region-private.h"
|
||||
#include "cairo-surface-inline.h"
|
||||
#include "cairo-surface-offset-private.h"
|
||||
|
||||
#if !defined(AC_SRC_OVER)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue