summaryrefslogtreecommitdiff
path: root/src/cairo-surface-snapshot-private.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-04-19 11:59:54 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-04-19 12:46:34 +0100
commit8653c2692e684a60370b99e545123ba2a7b00bc8 (patch)
tree39e9b1eefb52f76f2c3bfd069401c838ba2d51a0 /src/cairo-surface-snapshot-private.h
parent3266f936dee59b7c3a990e518899a72d0e103f62 (diff)
downloadcairo-8653c2692e684a60370b99e545123ba2a7b00bc8.tar.gz
Split cairo-recording-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>
Diffstat (limited to 'src/cairo-surface-snapshot-private.h')
-rw-r--r--src/cairo-surface-snapshot-private.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/cairo-surface-snapshot-private.h b/src/cairo-surface-snapshot-private.h
index b7a4d05f6..4c3369ba9 100644
--- a/src/cairo-surface-snapshot-private.h
+++ b/src/cairo-surface-snapshot-private.h
@@ -46,22 +46,4 @@ struct _cairo_surface_snapshot {
cairo_surface_t *clone;
};
-static inline cairo_bool_t
-_cairo_surface_snapshot_is_reused (cairo_surface_t *surface)
-{
- return CAIRO_REFERENCE_COUNT_GET_VALUE (&surface->ref_count) > 2;
-}
-
-static inline cairo_surface_t *
-_cairo_surface_snapshot_get_target (cairo_surface_t *surface)
-{
- return ((cairo_surface_snapshot_t *) surface)->target;
-}
-
-static inline cairo_bool_t
-_cairo_surface_is_snapshot (cairo_surface_t *surface)
-{
- return surface->backend->type == (cairo_surface_type_t)CAIRO_INTERNAL_SURFACE_TYPE_SNAPSHOT;
-}
-
#endif /* CAIRO_SURFACE_SNAPSHOT_PRIVATE_H */