[pango] Don't use hb_glib_get_unicode_funcs()
- From: Behdad Esfahbod <behdad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango] Don't use hb_glib_get_unicode_funcs()
- Date: Fri, 26 Jun 2015 18:42:21 +0000 (UTC)
commit d3fd4b7b5ea6c8fa56aa36235db76a6eef7ec0a6
Author: Behdad Esfahbod <behdad behdad org>
Date: Fri Jun 26 11:41:34 2015 -0700
Don't use hb_glib_get_unicode_funcs()
HarfBuzz buffer comes with a properly set up Unicode funcs
these days. So, trust it.
pango/pangofc-shape.c | 15 ++-------------
1 files changed, 2 insertions(+), 13 deletions(-)
---
diff --git a/pango/pangofc-shape.c b/pango/pangofc-shape.c
index f94f5eb..51404f0 100644
--- a/pango/pangofc-shape.c
+++ b/pango/pangofc-shape.c
@@ -35,17 +35,6 @@ static hb_buffer_t *cached_buffer = NULL; /* MT-safe */
G_LOCK_DEFINE_STATIC (cached_buffer);
static hb_buffer_t *
-create_buffer (void)
-{
- hb_buffer_t *buffer;
-
- buffer = hb_buffer_create ();
- hb_buffer_set_unicode_funcs (buffer, hb_glib_get_unicode_funcs ());
-
- return buffer;
-}
-
-static hb_buffer_t *
acquire_buffer (gboolean *free_buffer)
{
hb_buffer_t *buffer;
@@ -53,14 +42,14 @@ acquire_buffer (gboolean *free_buffer)
if (G_LIKELY (G_TRYLOCK (cached_buffer)))
{
if (G_UNLIKELY (!cached_buffer))
- cached_buffer = create_buffer ();
+ cached_buffer = hb_buffer_create ();
buffer = cached_buffer;
*free_buffer = FALSE;
}
else
{
- buffer = create_buffer ();
+ buffer = hb_buffer_create ();
*free_buffer = TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]