Files
ports/devel/electron44/files/patch-ui_gfx_font__render__params.h
T
2026-10-04 04:07:15 +00:00

27 lines
1.3 KiB
C++

--- ui/gfx/font_render_params.h.orig 2026-08-24 20:59:34 UTC
+++ ui/gfx/font_render_params.h
@@ -115,12 +115,12 @@ FontRenderParams GetFontRenderParams(const FontRenderP
FontRenderParams GetFontRenderParams(const FontRenderParamsQuery& query,
std::string* family_out);
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_WIN)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_BSD)
// Clears GetFontRenderParams()'s cache.
COMPONENT_EXPORT(GFX) void ClearFontRenderParamsCache();
#endif
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
// TODO(crbug.com/517630459) Return this to `ForTesting()` after per display
// subpixel rendering is implemented.
COMPONENT_EXPORT(GFX) bool GetFontRenderParamsSubpixelRenderingEnabled();
@@ -130,7 +130,7 @@ COMPONENT_EXPORT(GFX) float GetFontRenderParamsDeviceS
COMPONENT_EXPORT(GFX) float GetFontRenderParamsDeviceScaleFactor();
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
- BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA)
+ BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_BSD)
// Sets the device scale factor for FontRenderParams to decide
// if it should enable subpixel positioning.
COMPONENT_EXPORT(GFX)