diff options
Diffstat (limited to 'www/chromium/files/patch-ui_views_mus_aura__init.cc')
-rw-r--r-- | www/chromium/files/patch-ui_views_mus_aura__init.cc | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/www/chromium/files/patch-ui_views_mus_aura__init.cc b/www/chromium/files/patch-ui_views_mus_aura__init.cc new file mode 100644 index 000000000000..186cc436553e --- /dev/null +++ b/www/chromium/files/patch-ui_views_mus_aura__init.cc @@ -0,0 +1,29 @@ +--- ui/views/mus/aura_init.cc.orig 2017-02-02 02:03:13 UTC ++++ ui/views/mus/aura_init.cc +@@ -21,7 +21,7 @@ + #include "ui/views/mus/mus_client.h" + #include "ui/views/views_delegate.h" + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + #include "components/font_service/public/cpp/font_loader.h" + #endif + +@@ -67,7 +67,7 @@ AuraInit::AuraInit(service_manager::Conn + InitializeResources(connector); + + // Initialize the skia font code to go ask fontconfig underneath. +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + font_loader_ = sk_make_sp<font_service::FontLoader>(connector); + SkFontConfigInterface::SetGlobal(font_loader_.get()); + #endif +@@ -80,7 +80,7 @@ AuraInit::AuraInit(service_manager::Conn + } + + AuraInit::~AuraInit() { +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + if (font_loader_.get()) { + SkFontConfigInterface::SetGlobal(nullptr); + // FontLoader is ref counted. We need to explicitly shutdown the background |