commit | 942e99b9c411d093851db8d12c8357f409563007 | [log] [tgz] |
---|---|---|
author | mtklein <mtklein@chromium.org> | Wed Jun 17 07:53:22 2015 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Wed Jun 17 07:53:22 2015 -0700 |
tree | 8d207ed941ce017ed12cf185ce3b679d0526cafd | |
parent | 2334fb655f8d4ef5915770d32bf845c88d3627f4 [diff] |
Modernize atomics in SkTaskGroup's threadpool. - Use SkAtomic<int32_t> for pending work count so we're statically forced to operate on it with atomic methods. - Replacing old methods like sk_atomic_inc/dec gives us finer control over which barriers we need for each operation. No public API changes. TBR=reed@google.com BUG=skia: Review URL: https://codereview.chromium.org/1193493003