Grant independence to SkBaseMutex on Windows.
authortomhudson <tomhudson@chromium.org>
Tue, 1 Jul 2014 13:26:48 +0000 (06:26 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 1 Jul 2014 13:26:48 +0000 (06:26 -0700)
commitcad0cb2a2dd23ceee03f24954c491344aef18c2c
treef0ee1504b9c7cf4f76b76fc01293a4012b10bad9
parent4a2489f7bbaccfe588597193561526d579004653
Grant independence to SkBaseMutex on Windows.

Under POSIX, class SkMutex inherits from struct SkBaseMutex.
Since we can't have a POD mutex on Windows, we used to just
typedef SkMutex SkBaseMutex there. However, that makes it
impossible to forward-declare SkBaseMutex consistently across
platforms. With this CL we declare an empty struct SkBaseMutex
on Windows, which should have 0 cost but make the compiler happy.

R=bungeman@google.com, mtklein@google.com, tomhudson@google.com, bungeman, mtklein
BUG=skia:

Author: tomhudson@chromium.org

Review URL: https://codereview.chromium.org/364473002
src/ports/SkMutex_win.h