• Michael Spang's avatar
    Disable fontconfig scans on all Linux builds · bfaff1c6
    Michael Spang authored
    Fontconfig APIs that use the default config (config == nullptr) trigger
    periodic automatic updates of font lists. When fontconfig is used on
    multiple threads, as in Chromium, such a scan is able to free the default
    config while it's being used by another thread.
    
    Disable background scans to avoid this issue. This doesn't have any
    effect on call sites that pass the config explicitly, including those
    that pass the result of gfx::GetGlobalFontConfig().
    
    Bug: 1004254
    Change-Id: If7aa1b3d7b5823c3c93717557349a9d327ca2672
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1872467Reviewed-by: default avatarEtienne Bergeron <etienneb@chromium.org>
    Commit-Queue: Michael Spang <spang@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#707961}
    bfaff1c6
fontconfig_util.cc 7.01 KB