diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2007-10-11 17:21:31 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2007-10-11 17:21:31 +0000 |
commit | 840d74b4712b8b77035cd8abbf72b3f6fe2e2c8c (patch) | |
tree | e8b7635f63e449b4fd63530da8f71f1f91561491 /pango/pango-ot-private.h | |
parent | 932a4bf0d8fe13bb657c09fb426cd85334159e79 (diff) | |
download | pango-840d74b4712b8b77035cd8abbf72b3f6fe2e2c8c.tar.gz |
Bug 485566 – Cache one OpenType Buffer
2007-10-11 Behdad Esfahbod <behdad@gnome.org>
Bug 485566 – Cache one OpenType Buffer
* pango/pango-ot-buffer.c (acquire_buffer), (release_buffer),
(pango_ot_buffer_new), (pango_ot_buffer_destroy):
* pango/pango-ot-private.h:
Cache one HB_Buffer that is acquired using a lock. A new one is
created if the shared buffer is locked. The shared buffer is
cleared when released. May want to make it free shared buffer if
buffer->allocated is too large. Not sure.
svn path=/trunk/; revision=2443
Diffstat (limited to 'pango/pango-ot-private.h')
-rw-r--r-- | pango/pango-ot-private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pango/pango-ot-private.h b/pango/pango-ot-private.h index 88875e74..c56e0f26 100644 --- a/pango/pango-ot-private.h +++ b/pango/pango-ot-private.h @@ -86,6 +86,7 @@ struct _PangoOTRulesetClass struct _PangoOTBuffer { HB_Buffer buffer; + gboolean should_free_hb_buffer; PangoFcFont *font; guint rtl : 1; guint zero_width_marks : 1; |