diff options
author | mtklein <mtklein@chromium.org> | 2016-05-04 15:21:12 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-04 15:21:12 -0700 |
commit | 5e56cfd3fa1041dbb83899844fb92fa9a2ef1009 (patch) | |
tree | f272195cafb5a417284f9e28fa4155454c237938 /src/views/SkEventSink.cpp | |
parent | 9bd3fc7fa9bb7cad050bd619aa93d4c48ebb5c02 (diff) |
SK_DECLARE_STATIC_MUTEX -> static SkMutex
There's no need to use a macro to declare static SkMutexes any more
(and there's likewise no need to restrict them to global scope).
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1948193002
Review-Url: https://codereview.chromium.org/1948193002
Diffstat (limited to 'src/views/SkEventSink.cpp')
-rw-r--r-- | src/views/SkEventSink.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/views/SkEventSink.cpp b/src/views/SkEventSink.cpp index 1464fa0fac..5345608969 100644 --- a/src/views/SkEventSink.cpp +++ b/src/views/SkEventSink.cpp @@ -257,7 +257,7 @@ SkEventSink* SkEventSink::FindSink(SkEventSinkID sinkID) #include "SkTDict.h" #define kMinStringBufferSize 128 -SK_DECLARE_STATIC_MUTEX(gNamedSinkMutex); +static SkMutex gNamedSinkMutex; static SkTDict<SkEventSinkID> gNamedSinkIDs(kMinStringBufferSize); /** Register a name/id pair with the system. If the name already exists, |