Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Unified Diff: src/core/SkDeviceProfile.cpp

Issue 19540018: Update static SkMutex to remove static initializer on Linux. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkDeviceProfile.cpp
===================================================================
--- src/core/SkDeviceProfile.cpp (revision 10125)
+++ src/core/SkDeviceProfile.cpp (working copy)
@@ -7,6 +7,7 @@
#include "SkDeviceProfile.h"
+#include "SkThread.h"
SK_DEFINE_INST_COUNT(SkDeviceProfile)
@@ -45,7 +46,7 @@
return SkNEW_ARGS(SkDeviceProfile, (gammaExp, contrast, config, level));
}
-static SkMutex gMutex;
+SK_DECLARE_STATIC_MUTEX(gMutex);
static SkDeviceProfile* gDefaultProfile;
static SkDeviceProfile* gGlobalProfile;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698