aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ports/SkFontConfigInterface_direct.cpp
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2016-05-04 15:21:12 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-05-04 15:21:12 -0700
commit5e56cfd3fa1041dbb83899844fb92fa9a2ef1009 (patch)
treef272195cafb5a417284f9e28fa4155454c237938 /src/ports/SkFontConfigInterface_direct.cpp
parent9bd3fc7fa9bb7cad050bd619aa93d4c48ebb5c02 (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/ports/SkFontConfigInterface_direct.cpp')
-rw-r--r--src/ports/SkFontConfigInterface_direct.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ports/SkFontConfigInterface_direct.cpp b/src/ports/SkFontConfigInterface_direct.cpp
index d6fa96a46c..f2360020ad 100644
--- a/src/ports/SkFontConfigInterface_direct.cpp
+++ b/src/ports/SkFontConfigInterface_direct.cpp
@@ -32,7 +32,7 @@ namespace {
// Fontconfig is not threadsafe before 2.10.91. Before that, we lock with a global mutex.
// See https://bug.skia.org/1497 for background.
-SK_DECLARE_STATIC_MUTEX(gFCMutex);
+static SkMutex gFCMutex;
#ifdef SK_DEBUG
void* CreateThreadFcLocked() { return new bool(false); }