From 53ca05457a1d7306defd98ee4a21eb18e6a9be8d Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 2 Feb 2022 14:01:29 +1100 Subject: Add Supports::ThreadSafeMeasureWidths for platforms to indicate if they support concurrent calls to MeasureWidths. --- gtk/PlatGTK.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gtk') diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index 53ee57300..859589bec 100755 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -215,6 +215,10 @@ const Supports SupportsGTK[] = { Supports::FractionalStrokeWidth, Supports::TranslucentStroke, Supports::PixelModification, +#if !defined(PLAT_GTK_WIN32) && !defined(PLAT_GTK_MACOSX) + // Pango is not thread-safe on Win32 or macOS + Supports::ThreadSafeMeasureWidths, +#endif }; } -- cgit v1.2.3