diff options
author | Vladimir Vukicevic <vladimir@pobox.com> | 2007-02-20 12:15:35 -0800 |
---|---|---|
committer | Vladimir Vukicevic <vladimir@h-154.office.mozilla.org> | 2007-02-20 12:15:35 -0800 |
commit | 4c201723ce8139c2e6620881583bc08e3aa1bad7 (patch) | |
tree | 9cb7a1c1c980763f942ef319f3a2853a370b04ec /src/cairo-quartz-private.h | |
parent | 641f0919d53691e561aa665d31cc43524d861215 (diff) |
[quartz] Rename nquartz to quartz
Diffstat (limited to 'src/cairo-quartz-private.h')
-rw-r--r-- | src/cairo-quartz-private.h | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/src/cairo-quartz-private.h b/src/cairo-quartz-private.h index f9db501c9..f053bc0d4 100644 --- a/src/cairo-quartz-private.h +++ b/src/cairo-quartz-private.h @@ -39,20 +39,34 @@ #include <cairoint.h> #include <cairo-quartz.h> -typedef struct cairo_quartz_surface { +#ifdef CAIRO_NQUARTZ_SUPPORT_AGL +#include <AGL/agl.h> +#include <OpenGL/gl.h> + +typedef AGLContext nquartz_agl_context_type; +#else +typedef void* nquartz_agl_context_type; +#endif + +typedef struct cairo_nquartz_surface { cairo_surface_t base; - CGContextRef context; + void *imageData; - cairo_bool_t y_grows_down; + CGContextRef cgContext; + CGAffineTransform cgContextBaseCTM; cairo_rectangle_int16_t extents; - pixman_region16_t *clip_region; -} cairo_quartz_surface_t; - -cairo_bool_t -_cairo_surface_is_quartz (cairo_surface_t *surface); + /* These are stored while drawing operations are in place, set up + * by nquartz_setup_source() and nquartz_finish_source() + */ + CGAffineTransform imageTransform; + CGImageRef sourceImage; + CGShadingRef sourceShading; + CGPatternRef sourcePattern; + nquartz_agl_context_type aglContext; +} cairo_nquartz_surface_t, cairo_quartz_surface_t; cairo_bool_t _cairo_scaled_font_is_atsui (cairo_scaled_font_t *sfont); |