SkOncePtr -> SkOnce
authormtklein <mtklein@chromium.org>
Thu, 5 May 2016 23:05:56 +0000 (16:05 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 5 May 2016 23:05:56 +0000 (16:05 -0700)
commitffa4a9213b4e754adc210fa02a3c4b1ae8d3b6d0
treee6f20243b4ed7c36e36302d914e255dfa6799217
parent4017007b288087c07c596baa9fe8ecf485bca1c3
SkOncePtr -> SkOnce

It's always nice to kill off a synchronization primitive.
And while less terse, I think this new code reads more clearly.

... and, SkOncePtr's tests were the only thing now using sk_num_cores()
outside of SkTaskGroup, so I've hidden it as static inside SkTaskGroup.cpp.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1953533002
CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot

Committed: https://skia.googlesource.com/skia/+/9bd3fc7fa9bb7cad050bd619aa93d4c48ebb5c02

Review-Url: https://codereview.chromium.org/1953533002
20 files changed:
gyp/core.gypi
include/private/SkOncePtr.h [deleted file]
src/core/SkColorSpace.cpp
src/core/SkData.cpp
src/core/SkFontMgr.cpp
src/core/SkGlyphCache.cpp
src/core/SkImageFilterCache.cpp
src/core/SkMessageBus.h
src/core/SkMiniRecorder.cpp
src/core/SkPathRef.cpp
src/core/SkTaskGroup.cpp
src/core/SkTaskGroup.h
src/core/SkTypeface.cpp
src/core/SkXfermode.cpp
src/fonts/SkRemotableFontMgr.cpp
src/lazy/SkDiscardableMemoryPool.cpp
src/opts/opts_check_x86.cpp
src/ports/SkFontHost_mac.cpp
src/utils/SkEventTracer.cpp
tests/OncePtrTest.cpp [deleted file]