Make SkColorTable explicitly thread-safe.
authormtklein <mtklein@chromium.org>
Tue, 2 Dec 2014 18:02:47 +0000 (10:02 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 2 Dec 2014 18:02:47 +0000 (10:02 -0800)
commitcc969c4dd936c97670788395c9cbee3f346e87d1
treef1f9a3e00b69101f241b8041a5e9313d9b1f22a1
parenteff2c721b9877e5e9e6c71b21dde0e69eccb2b14
Make SkColorTable explicitly thread-safe.

Mostly this means using SkLazyPtr for the 16-bit cache.
We can remove the copy constructor now and just ref it instead.

BUG=skia:

Review URL: https://codereview.chromium.org/769323002
include/core/SkColorTable.h
src/core/SkBitmap.cpp
src/core/SkColorTable.cpp