[pango/drop-broken-optimization] fc: Drop a broken optimization
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/drop-broken-optimization] fc: Drop a broken optimization
- Date: Thu, 1 Jul 2021 19:11:55 +0000 (UTC)
commit bf4050c4928a009e4d4972ab834217fa57a16f75
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jul 1 15:09:52 2021 -0400
fc: Drop a broken optimization
We were trying to cut short the wait for FcInit in
pango_fc_font_map_set_config. But there was a thinko:
while it is true that the fontmap which had set_config
called on it does not need to wait for FcInit anymore,
other threads fontmaps still do. Instead of making this
more complicated, just drop the optimization.
pango/pangofc-fontmap.c | 3 ---
1 file changed, 3 deletions(-)
---
diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c
index 473dd797..0df9de9f 100644
--- a/pango/pangofc-fontmap.c
+++ b/pango/pangofc-fontmap.c
@@ -2323,9 +2323,6 @@ pango_fc_font_map_set_config (PangoFcFontMap *fcfontmap,
if (oldconfig)
FcConfigDestroy (oldconfig);
-
- /* No need to wait anymore */
- fc_initialized = 2;
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]