summaryrefslogtreecommitdiff
path: root/render/glyphstr.h
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2007-08-02 22:48:32 -0700
committerCarl Worth <cworth@cworth.org>2007-08-02 22:49:56 -0700
commit0a71e1542a07abc5e32501973a7cf6de3f641317 (patch)
treeba77b526cf1dcaa1a47d3050b69d98e76ca89e5e /render/glyphstr.h
parenta2af34d5a861982a03afad8e586bb0181b72bbd0 (diff)
Create a Picture as well as a Pixmap at the time of AllocateGlyph
This avoids some inefficiency in creating a temporary Picture for every glyph at rendering time. My measurements with an i965 showed the previous patch causing a 10-15% slowdown for NoAccel and XAA cases, (while providing an 18% speedup for EXA). With this change, the NoAccel and XAA performance regression is eliminated, and the overall EXA speedup, (before any of the glyphs-as-pixmaps work), is now 32%.
Diffstat (limited to 'render/glyphstr.h')
-rw-r--r--render/glyphstr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/render/glyphstr.h b/render/glyphstr.h
index 4f8746003..c6ab5aa11 100644
--- a/render/glyphstr.h
+++ b/render/glyphstr.h
@@ -47,7 +47,7 @@ typedef struct _Glyph {
/* per-screen pixmaps follow */
} GlyphRec, *GlyphPtr;
-#define GlyphPixmap(glyph) ((PixmapPtr *) ((glyph) + 1))
+#define GlyphPicture(glyph) ((PicturePtr *) ((glyph) + 1))
typedef struct _GlyphRef {
CARD32 signature;