summaryrefslogtreecommitdiff
path: root/perf/cairo-perf.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-05-28 18:05:26 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-06-02 15:13:46 +0100
commit4aca84ddb22bc178cbc9b132b9ce06af3f4b300b (patch)
tree8f20580b5cb400d6cb191433cfd86a047134643c /perf/cairo-perf.h
parent55f4e0e4e8c7df59bfc9e6ffea8daa065276e42f (diff)
downloadcairo-4aca84ddb22bc178cbc9b132b9ce06af3f4b300b.tar.gz
[perf] Add a pure glyphs performance metric
Use the new API Behdad exposed in 1.8 to precompute a glyph string using Cairo and then benchmark cairo_show_glyphs(). This is then equivalent to the text benchmark but without the extra step of converting to glyphs on every call to cairo_show_text() i.e. it shows the underlying glyph rendering performance.
Diffstat (limited to 'perf/cairo-perf.h')
-rw-r--r--perf/cairo-perf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/perf/cairo-perf.h b/perf/cairo-perf.h
index 7e792ad87..0a3606b27 100644
--- a/perf/cairo-perf.h
+++ b/perf/cairo-perf.h
@@ -170,6 +170,7 @@ CAIRO_PERF_DECL (stroke);
CAIRO_PERF_DECL (subimage_copy);
CAIRO_PERF_DECL (tessellate);
CAIRO_PERF_DECL (text);
+CAIRO_PERF_DECL (glyphs);
CAIRO_PERF_DECL (pattern_create_radial);
CAIRO_PERF_DECL (zrusin);
CAIRO_PERF_DECL (world_map);