diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-08-30 14:24:12 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-08-30 15:17:38 +0100 |
commit | 70cd3b473d09e9ad3d803014a904a22639db1a24 (patch) | |
tree | 45be818179ce0ce6e95cf2ddeb6e300922889407 /src/cairo-xml-surface.c | |
parent | 6b1daace578673c72a22a2fac72df9af2312cb10 (diff) |
api: Extend cairo_antialias_t to include performace/quality hints
The existing API only described the method to be used for performing
rasterisation and unlike other API provided no opportunity for the user
to give a hint as to how to trade off performance against speed. So in
order to no be overly prescriptive, we extend the NONE/GRAY/SUBPIXEL
methods with FAST/GOOD/BEST hints and leave the backend to decide how
best to achieve those goals.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-xml-surface.c')
-rw-r--r-- | src/cairo-xml-surface.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/cairo-xml-surface.c b/src/cairo-xml-surface.c index f15a7677..40b6160a 100644 --- a/src/cairo-xml-surface.c +++ b/src/cairo-xml-surface.c @@ -158,10 +158,13 @@ static const char * _antialias_to_string (cairo_antialias_t antialias) { static const char *names[] = { - "ANTIALIAS_DEFAULT", /* CAIRO_ANTIALIAS_DEFAULT */ - "ANTIALIAS_NONE", /* CAIRO_ANTIALIAS_NONE */ - "ANTIALIAS_GRAY", /* CAIRO_ANTIALIAS_GRAY */ - "ANTIALIAS_SUBPIXEL" /* CAIRO_ANTIALIAS_SUBPIXEL */ + "DEFAULT", /* CAIRO_ANTIALIAS_DEFAULT */ + "NONE", /* CAIRO_ANTIALIAS_NONE */ + "GRAY", /* CAIRO_ANTIALIAS_GRAY */ + "SUBPIXEL", /* CAIRO_ANTIALIAS_SUBPIXEL */ + "FAST", /* CAIRO_ANTIALIAS_FAST */ + "GOOD", /* CAIRO_ANTIALIAS_GOOD */ + "BEST", /* CAIRO_ANTIALIAS_BEST */ }; assert (antialias < ARRAY_LENGTH (names)); return names[antialias]; |