Don't require -DSK_USE_POSIX_THREADS.
authormtklein <mtklein@chromium.org>
Thu, 22 Jan 2015 03:51:27 +0000 (19:51 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 22 Jan 2015 03:51:27 +0000 (19:51 -0800)
commit4daa6f613cb7d8a3c07369af3e919ea65405ec55
treec46b7e2e4ef4875532a0f1a37b3e95adfdfb3c53
parent55e88b226ccb85d2c712a9e3e9e1f5bdcaac05ac
Don't require -DSK_USE_POSIX_THREADS.

To compile SkCondVar, we already require either pthreads or Windows.  This
simplifies that code to not need SK_USE_POSIX_THREADS to be explicitly defined.
We'll just look to see if we're targeting Windows, and if not, assume pthreads.

Both before and after this CL, that code will fail to compile if we're not on
Windows and don't have pthreads.

BUG=skia:

Review URL: https://codereview.chromium.org/869443003
gyp/common_conditions.gypi
src/core/SkPixelRef.cpp
src/utils/SkCondVar.cpp
src/utils/SkCondVar.h