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
This commit is contained in:
bungeman@google.com 2013-07-18 21:05:50 +00:00
parent 9a47ed785f
commit 415c480a88

View File

@ -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;