commit | 63d0024cde57eba4f7802fdc4fe49467867f52ba | [log] [tgz] |
---|---|---|
author | mtklein <mtklein@chromium.org> | Wed Feb 25 09:10:57 2015 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Wed Feb 25 09:10:57 2015 -0800 |
tree | 8905721e0359e61b01896bf46b30f8d25adc5785 | |
parent | 63c684a8a609d39da11b4a656223cebf52ca85dc [diff] |
Steal a bit from the gen ID instead of managing two atomic values. This extra atomic bool is hard to think about, and I'm worried about how updates to fGenerationID and fUniqueGenerationID interlace. By storing them in the same int, they can't ever race. CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu13.10-GCE-NoGPU-x86_64-Release-TSAN-Trybot BUG=skia: Review URL: https://codereview.chromium.org/955043002