OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkFontMgr_indirect_DEFINED | 8 #ifndef SkFontMgr_indirect_DEFINED |
9 #define SkFontMgr_indirect_DEFINED | 9 #define SkFontMgr_indirect_DEFINED |
10 | 10 |
| 11 #include "../private/SkMutex.h" |
| 12 #include "../private/SkTArray.h" |
11 #include "SkDataTable.h" | 13 #include "SkDataTable.h" |
12 #include "SkFontMgr.h" | 14 #include "SkFontMgr.h" |
13 #include "../private/SkMutex.h" | |
14 #include "SkRefCnt.h" | 15 #include "SkRefCnt.h" |
15 #include "SkRemotableFontMgr.h" | 16 #include "SkRemotableFontMgr.h" |
16 #include "SkTArray.h" | |
17 #include "SkTypeface.h" | 17 #include "SkTypeface.h" |
18 #include "SkTypes.h" | 18 #include "SkTypes.h" |
19 | 19 |
20 class SkData; | 20 class SkData; |
21 class SkFontStyle; | 21 class SkFontStyle; |
22 class SkStreamAsset; | 22 class SkStreamAsset; |
23 class SkString; | 23 class SkString; |
24 | 24 |
25 class SK_API SkFontMgr_Indirect : public SkFontMgr { | 25 class SK_API SkFontMgr_Indirect : public SkFontMgr { |
26 public: | 26 public: |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 97 |
98 mutable SkAutoTUnref<SkDataTable> fFamilyNames; | 98 mutable SkAutoTUnref<SkDataTable> fFamilyNames; |
99 mutable bool fFamilyNamesInited; | 99 mutable bool fFamilyNamesInited; |
100 mutable SkMutex fFamilyNamesMutex; | 100 mutable SkMutex fFamilyNamesMutex; |
101 static void set_up_family_names(const SkFontMgr_Indirect* self); | 101 static void set_up_family_names(const SkFontMgr_Indirect* self); |
102 | 102 |
103 friend class SkStyleSet_Indirect; | 103 friend class SkStyleSet_Indirect; |
104 }; | 104 }; |
105 | 105 |
106 #endif | 106 #endif |
OLD | NEW |