RESOLVED FIXED233981
Make Windows font smoothing variables thread safe
https://bugs.webkit.org/show_bug.cgi?id=233981
Summary Make Windows font smoothing variables thread safe
Cameron McCormack (:heycam)
Reported 2021-12-07 22:43:00 PST
Make Windows font smoothing variables thread safe
Attachments
Patch (5.56 KB, patch)
2021-12-07 22:51 PST, Cameron McCormack (:heycam)
no flags
Patch (5.56 KB, patch)
2021-12-08 15:35 PST, Cameron McCormack (:heycam)
mmaxfield: review+
Patch (5.23 KB, patch)
2022-07-19 15:49 PDT, Matt Woodrow
no flags
Cameron McCormack (:heycam)
Comment 1 2021-12-07 22:51:39 PST
Cameron McCormack (:heycam)
Comment 2 2021-12-08 15:35:26 PST
Cameron McCormack (:heycam)
Comment 3 2021-12-08 15:36:14 PST
Note that I've added WTF_GUARDED_BY_LOCK attributes but this is Windows code, and MSVC doesn't support those, so it's more like documentation.
Myles C. Maxfield
Comment 4 2021-12-08 21:11:17 PST
Comment on attachment 446440 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=446440&action=review > Source/WebCore/ChangeLog:3 > + Make Windows font smoothing variables thread safe Is Fujii in the process of deleting these? https://bugs.webkit.org/show_bug.cgi?id=206273
Fujii Hironori
Comment 5 2021-12-09 22:07:55 PST
Comment on attachment 446440 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=446440&action=review >> Source/WebCore/ChangeLog:3 >> + Make Windows font smoothing variables thread safe > > Is Fujii in the process of deleting these? https://bugs.webkit.org/show_bug.cgi?id=206273 I don't think so. Bug 206273 seems irrelevant.
Myles C. Maxfield
Comment 6 2021-12-10 15:35:52 PST
Comment on attachment 446440 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=446440&action=review I assume you grepped to find all uses? > Source/WebCore/platform/graphics/FontCascade.h:330 > + static Lock s_fontSmoothingLock; > + static double s_fontSmoothingContrast WTF_GUARDED_BY_LOCK(s_fontSmoothingLock); > + static uint32_t s_fontSmoothingType WTF_GUARDED_BY_LOCK(s_fontSmoothingLock); > + static int s_fontSmoothingLevel WTF_GUARDED_BY_LOCK(s_fontSmoothingLock); > + static uint32_t s_systemFontSmoothingType WTF_GUARDED_BY_LOCK(s_fontSmoothingLock); > + static bool s_systemFontSmoothingSet WTF_GUARDED_BY_LOCK(s_fontSmoothingLock); > + static bool s_systemFontSmoothingEnabled WTF_GUARDED_BY_LOCK(s_fontSmoothingLock); I kind of think this is a poor design and these shouldn't be statics in the first place ...
Radar WebKit Bug Importer
Comment 7 2021-12-14 22:43:17 PST
Matt Woodrow
Comment 8 2022-07-19 15:49:26 PDT
EWS
Comment 9 2022-07-19 23:11:17 PDT
Committed 252638@main (85c5eabc2149): <https://commits.webkit.org/252638@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 461022 [details].
Note You need to log in before you can comment on or make changes to this bug.