Modernize SkMutex and SkSemaphore.
authormtklein <mtklein@chromium.org>
Wed, 4 May 2016 18:31:29 +0000 (11:31 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 4 May 2016 18:31:29 +0000 (11:31 -0700)
commit427c2819d9237d7d7729c59238036cfc73c072ea
tree90d1d7ebba7d16bfbe56a6f59c6cf135c7161acf
parent325474dd42db6d5a16cc4cf18f06dad4e0d60e9f
Modernize SkMutex and SkSemaphore.

   - use <atomic>
   - fuse SkMutex and SkBaseMutex
   - fuse SkSemaphore and SkBaseSemaphore

Still TODO:
   - replace SK_DECLARE_STATIC_MUTEX(name) with static SkMutex name

I just didn't want to bother fixing all that up until I know this CL sticks.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1947153002

No public API changes.
TBR=reed@google.com

Review-Url: https://codereview.chromium.org/1947153002
include/core/SkPixelRef.h
include/ports/SkFontConfigInterface.h
include/private/SkMutex.h
include/private/SkSemaphore.h
src/core/SkSemaphore.cpp
src/lazy/SkDiscardableMemoryPool.cpp
src/lazy/SkDiscardableMemoryPool.h