Add and use SkSemaphore
authormtklein <mtklein@chromium.org>
Wed, 17 Jun 2015 17:50:25 +0000 (10:50 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 17 Jun 2015 17:50:25 +0000 (10:50 -0700)
commit61fa22be104a3e98998fa1b24cd47b886df5721c
tree09bf90b56014bb4f2753efcb3b25e220b6a0f313
parentab80e35fbddd5b534b486cf9d331b5da00e5aa4f
Add and use SkSemaphore

This allows a faster implementation of our SkTaskGroup thread pool.
It also means we don't need SkCondVar (which, remember, isn't supported on XP.)

Doing some testing with SampleApp, this really cuts down on the overhead from SkTaskGroup, e.g. 30% to 10%.

BUG=skia:

Review URL: https://codereview.chromium.org/1192573003
gyp/core.gypi
gyp/utils.gypi
src/core/SkSemaphore.cpp [new file with mode: 0644]
src/core/SkSemaphore.h [new file with mode: 0644]
src/core/SkTaskGroup.cpp
src/utils/SkCondVar.cpp [deleted file]
src/utils/SkCondVar.h [deleted file]