diff options
author | Robin Watts <robin.watts@artifex.com> | 2011-12-06 15:03:35 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2011-12-06 15:03:35 +0000 |
commit | 51ea850c2f8464a7245268af3d496141b513d6ba (patch) | |
tree | b39e88b4f06690bbd14e571934c7b88df4336bc4 /fitz/fitz.h | |
parent | 3a207e707b352b8031409f3851705fbc7eccff36 (diff) | |
download | mupdf-51ea850c2f8464a7245268af3d496141b513d6ba.tar.xz |
Move antialias levels into context.
In builds that support configurable layers of antialiasing, move
the variables that control this into the context. This makes it
possible to safely use different levels of antialiasing in different
threads.
Diffstat (limited to 'fitz/fitz.h')
-rw-r--r-- | fitz/fitz.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/fitz/fitz.h b/fitz/fitz.h index 1ae803a4..c3c33487 100644 --- a/fitz/fitz.h +++ b/fitz/fitz.h @@ -139,6 +139,7 @@ typedef struct fz_alloc_context_s fz_alloc_context; typedef struct fz_error_context_s fz_error_context; typedef struct fz_warn_context_s fz_warn_context; typedef struct fz_font_context_s fz_font_context; +typedef struct fz_aa_context_s fz_aa_context; typedef struct fz_context_s fz_context; struct fz_alloc_context_s @@ -191,12 +192,16 @@ struct fz_context_s fz_error_context *error; fz_warn_context *warn; fz_font_context *font; + fz_aa_context *aa; }; fz_context *fz_new_context(fz_alloc_context *alloc); fz_context *fz_clone_context(fz_context *ctx); void fz_free_context(fz_context *ctx); +void fz_new_aa_context(fz_context *ctx); +void fz_free_aa_context(fz_context *ctx); + /* * Basic runtime and utility functions */ @@ -1004,8 +1009,8 @@ void fz_free_glyph_cache(fz_context *ctx, fz_glyph_cache *); * Scan converter */ -int fz_get_aa_level(void); -void fz_set_aa_level(int bits); +int fz_get_aa_level(fz_context *ctx); +void fz_set_aa_level(fz_context *ctx, int bits); typedef struct fz_gel_s fz_gel; |