diff options
author | mtklein <mtklein@chromium.org> | 2015-07-13 06:15:36 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-13 06:15:36 -0700 |
commit | 4598fc3c123cd8af1dac5596f955a375186a31f3 (patch) | |
tree | bc117af2acc040f14a5e3ab4c849ea863fa1db37 /src/ports | |
parent | bd3e8cb42c50e7250e75452cd7f5cddc0b574de3 (diff) |
Use SK_DECLARE_STATIC_MUTEX for global mutex.
This initializes the mutex at link time on non-Windows platforms,
rather than at pre-main-runtime like `static SkMutex gFoo;`
BUG=skia:
Review URL: https://codereview.chromium.org/1226403007
Diffstat (limited to 'src/ports')
-rwxr-xr-x | src/ports/SkFontHost_mac.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ports/SkFontHost_mac.cpp b/src/ports/SkFontHost_mac.cpp index bfacb07860..b55aa355f1 100755 --- a/src/ports/SkFontHost_mac.cpp +++ b/src/ports/SkFontHost_mac.cpp @@ -53,7 +53,7 @@ #define USE_GLOBAL_MUTEX_FOR_CG_ACCESS #ifdef USE_GLOBAL_MUTEX_FOR_CG_ACCESS - static SkMutex gCGMutex; + SK_DECLARE_STATIC_MUTEX(gCGMutex); #define AUTO_CG_LOCK() SkAutoMutexAcquire amc(gCGMutex) #else #define AUTO_CG_LOCK() |