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 /util/cairo-trace | |
parent | 6b1daace578673c72a22a2fac72df9af2312cb10 (diff) | |
download | cairo-70cd3b473d09e9ad3d803014a904a22639db1a24.tar.gz |
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 'util/cairo-trace')
-rw-r--r-- | util/cairo-trace/trace.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/util/cairo-trace/trace.c b/util/cairo-trace/trace.c index 1b42bed30..a6de76f1a 100644 --- a/util/cairo-trace/trace.c +++ b/util/cairo-trace/trace.c @@ -2271,9 +2271,14 @@ _antialias_to_string (cairo_antialias_t antialias) #define f(name) case CAIRO_ANTIALIAS_ ## name: return "ANTIALIAS_" #name switch (antialias) { f(DEFAULT); + f(NONE); f(GRAY); f(SUBPIXEL); + + f(FAST); + f(GOOD); + f(BEST); }; #undef f return "UNKNOWN_ANTIALIAS"; |