aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-18 21:05:50 +0000
committerGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-18 21:05:50 +0000
commit415c480a88d448e4c09643443ce3038a5ee108c5 (patch)
treea50e1c257a6d70f2c331bf5076aa4fb2de400892 /src
parent9a47ed785fbd6433786bf4feeb8c955aaa25b01e (diff)
Update static SkMutex to remove static initializer on Linux.
R=reed@google.com Review URL: https://codereview.chromium.org/19540018 git-svn-id: http://skia.googlecode.com/svn/trunk@10168 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r--src/core/SkDeviceProfile.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/SkDeviceProfile.cpp b/src/core/SkDeviceProfile.cpp
index ce3e566397..a15069a17e 100644
--- a/src/core/SkDeviceProfile.cpp
+++ b/src/core/SkDeviceProfile.cpp
@@ -7,6 +7,7 @@
#include "SkDeviceProfile.h"
+#include "SkThread.h"
SK_DEFINE_INST_COUNT(SkDeviceProfile)
@@ -45,7 +46,7 @@ SkDeviceProfile* SkDeviceProfile::Create(float gammaExp,
return SkNEW_ARGS(SkDeviceProfile, (gammaExp, contrast, config, level));
}
-static SkMutex gMutex;
+SK_DECLARE_STATIC_MUTEX(gMutex);
static SkDeviceProfile* gDefaultProfile;
static SkDeviceProfile* gGlobalProfile;