commit | ae6377c08e5c3735c65212ba9ff86fa51af7d68a | [log] [tgz] |
---|---|---|
author | msarett <msarett@google.com> | Tue Aug 23 14:36:20 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Tue Aug 23 14:36:20 2016 -0700 |
tree | 57ae0f599ba46361bc14dccb7a89f8b4777afcb9 | |
parent | 19fe41e85e6ce3e78b3a69fce1cf28edf937027d [diff] |
Make singleton SkColorSpaces thread safe SkColorSpaces may be once-ptrs, so we can reuse common color spaces. This means that they must be thread safe. SkMatrix44 is not thread safe because it maintains a mutable type mask. This CL ensures that we precompute the type mask so we can use const SkMatrix44's safely. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2277463002 Review-Url: https://codereview.chromium.org/2277463002