[cairo] [PATCH 1/3] observer: Export cairo_surface_is_observer function
Rob Bradford
rob at robster.org.uk
Wed Aug 31 11:49:24 PDT 2011
From: Rob Bradford <rob at linux.intel.com>
Signed-off-by: Rob Bradford <rob at linux.intel.com>
---
src/cairo-surface-observer.c | 6 ++++++
src/cairo.h | 3 +++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/cairo-surface-observer.c b/src/cairo-surface-observer.c
index 92f2624..3d7af94 100644
--- a/src/cairo-surface-observer.c
+++ b/src/cairo-surface-observer.c
@@ -1944,3 +1944,9 @@ cairo_device_observer_glyphs_elapsed (cairo_device_t *abstract_device)
device = (cairo_device_observer_t *) abstract_device;
return device->log.glyphs.elapsed;
}
+
+cairo_bool_t
+cairo_surface_is_observer (cairo_surface_t *surface)
+{
+ return _cairo_surface_is_observer (surface);
+}
diff --git a/src/cairo.h b/src/cairo.h
index 710d997..f432a3e 100644
--- a/src/cairo.h
+++ b/src/cairo.h
@@ -2141,6 +2141,9 @@ typedef enum {
CAIRO_SURFACE_OBSERVER_RECORD_OPERATIONS = 0x1,
} cairo_surface_observer_mode_t;
+cairo_public cairo_bool_t
+cairo_surface_is_observer (cairo_surface_t *surface);
+
cairo_public cairo_surface_t *
cairo_surface_create_observer (cairo_surface_t *target,
cairo_surface_observer_mode_t mode);
--
1.7.6
More information about the cairo
mailing list