summaryrefslogtreecommitdiff
path: root/src/cairo-scaled-font-private.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-05-06 14:52:02 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2008-05-06 15:10:51 +0100
commit3428acf25db6c67ca48d619e98406a6bd4868880 (patch)
tree7992913066d960a1aac3114f23acb7a9d78226ca /src/cairo-scaled-font-private.h
parent24284c5101363f8d418083e821c1bad88830dbcb (diff)
downloadcairo-3428acf25db6c67ca48d619e98406a6bd4868880.tar.gz
[cairo-scaled-font] Mark the scaled font as finished during destruction.
During the destruction of every font used with an xlib surface, we send an XRenderFreeGlyphs() for every single glyph in the cache. These requests are redundant as the server-side glyphs will be released along with the XRenderFreeGlyphSet(), so we skip the individual glyph destruction if the font is marked as finished.
Diffstat (limited to 'src/cairo-scaled-font-private.h')
-rw-r--r--src/cairo-scaled-font-private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-scaled-font-private.h b/src/cairo-scaled-font-private.h
index 87a46166c..4cf6a37bd 100644
--- a/src/cairo-scaled-font-private.h
+++ b/src/cairo-scaled-font-private.h
@@ -89,6 +89,8 @@ struct _cairo_scaled_font {
cairo_matrix_t ctm; /* user space => device space */
cairo_font_options_t options;
+ cairo_bool_t finished;
+
/* "live" scaled_font members */
cairo_matrix_t scale; /* font space => device space */
cairo_matrix_t scale_inverse; /* device space => font space */