Steal a bit from the gen ID instead of managing two atomic values.
authormtklein <mtklein@chromium.org>
Wed, 25 Feb 2015 17:10:57 +0000 (09:10 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 25 Feb 2015 17:10:57 +0000 (09:10 -0800)
commit63d0024cde57eba4f7802fdc4fe49467867f52ba
tree8905721e0359e61b01896bf46b30f8d25adc5785
parent63c684a8a609d39da11b4a656223cebf52ca85dc
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
include/core/SkPixelRef.h
src/core/SkPixelRef.cpp