aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/ports
diff options
context:
space:
mode:
Diffstat (limited to 'include/ports')
-rw-r--r--include/ports/SkFontMgr_indirect.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/ports/SkFontMgr_indirect.h b/include/ports/SkFontMgr_indirect.h
index 5e8f1ede70..d3f47cb82b 100644
--- a/include/ports/SkFontMgr_indirect.h
+++ b/include/ports/SkFontMgr_indirect.h
@@ -9,6 +9,7 @@
#define SkFontMgr_indirect_DEFINED
#include "../private/SkMutex.h"
+#include "../private/SkOnce.h"
#include "../private/SkTArray.h"
#include "SkDataTable.h"
#include "SkFontMgr.h"
@@ -28,7 +29,7 @@ public:
// In the future these calls should be broken out into their own interface
// with a name like SkFontRenderer.
SkFontMgr_Indirect(SkFontMgr* impl, SkRemotableFontMgr* proxy)
- : fImpl(SkRef(impl)), fProxy(SkRef(proxy)), fFamilyNamesInited(false)
+ : fImpl(SkRef(impl)), fProxy(SkRef(proxy))
{ }
protected:
@@ -95,8 +96,7 @@ private:
mutable SkMutex fDataCacheMutex;
mutable SkAutoTUnref<SkDataTable> fFamilyNames;
- mutable bool fFamilyNamesInited;
- mutable SkMutex fFamilyNamesMutex;
+ mutable SkOnce fFamilyNamesInitOnce;
static void set_up_family_names(const SkFontMgr_Indirect* self);
friend class SkStyleSet_Indirect;