diff options
author | John Ralls <jralls@ceridwen.us> | 2022-02-10 12:54:46 -0800 |
---|---|---|
committer | John Ralls <jralls@ceridwen.us> | 2022-02-24 16:59:56 -0800 |
commit | 64786613ee3bf94193e9f515ca42208b5bb3d17d (patch) | |
tree | 360f81bb1b627d2cab2ac32cbbe74ff412219b1d /src/cairo-types-private.h | |
parent | 4fc72919e149a3fd26a863757832d67c661b6727 (diff) | |
download | cairo-64786613ee3bf94193e9f515ca42208b5bb3d17d.tar.gz |
[quartz] Snapshot CGBitmapContext-mapped surfaces to cache CGImages.
Motivation: Avoid need to recreate CGImages for unchanged surfaces,
an expensive operation, while ensuring that the CGImages are properly
freed and new ones created when the surface does change.
Thanks to Uli Schlacter for suggestion and coding guidance.
Diffstat (limited to 'src/cairo-types-private.h')
-rw-r--r-- | src/cairo-types-private.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cairo-types-private.h b/src/cairo-types-private.h index 2ec2ce67b..59404243b 100644 --- a/src/cairo-types-private.h +++ b/src/cairo-types-private.h @@ -254,7 +254,8 @@ typedef enum _cairo_internal_surface_type { CAIRO_INTERNAL_SURFACE_TYPE_TEST_PAGINATED, CAIRO_INTERNAL_SURFACE_TYPE_TEST_WRAPPING, CAIRO_INTERNAL_SURFACE_TYPE_NULL, - CAIRO_INTERNAL_SURFACE_TYPE_TYPE3_GLYPH + CAIRO_INTERNAL_SURFACE_TYPE_TYPE3_GLYPH, + CAIRO_INTERNAL_SURFACE_TYPE_QUARTZ_SNAPSHOT } cairo_internal_surface_type_t; typedef enum _cairo_internal_device_type { |