commit | bd171b13a4e04434cf2ee4d3b79ce28f0aeddd0f | [log] [tgz] |
---|---|---|
author | tzik <tzik@chromium.org> | Thu Feb 23 04:24:04 2017 |
committer | Commit bot <commit-bot@chromium.org> | Thu Feb 23 04:24:04 2017 |
tree | d905f3847a7e0a996b308940931438dec25b60ef | |
parent | ec5f9b7821faea7d2083376a934e306e0763572e [diff] |
Avoid touching ResourceBundle fonts from non-UI thread SharedResourcesDataSource touches shared fonts in ResourceBundle from IO thread. However, gfx::Font is not thread safe due to non-thread-safe ref counts in gfx::PlatformFont and gfx::FontListImpl. That causes a data race on the ref count. So, we should touch fonts in ResourceBundle only from UI thread. BUG=688072, 468010 Review-Url: https://codereview.chromium.org/2701183002 Cr-Commit-Position: refs/heads/master@{#452390}