OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 GrBatchFontCache_DEFINED | 8 #ifndef GrBatchFontCache_DEFINED |
9 #define GrBatchFontCache_DEFINED | 9 #define GrBatchFontCache_DEFINED |
10 | 10 |
11 #include "GrBatchAtlas.h" | 11 #include "GrBatchAtlas.h" |
12 #include "GrDrawTarget.h" | |
13 #include "GrFontScaler.h" | 12 #include "GrFontScaler.h" |
14 #include "GrGlyph.h" | 13 #include "GrGlyph.h" |
15 #include "SkTDynamicHash.h" | 14 #include "SkTDynamicHash.h" |
16 #include "SkVarAlloc.h" | 15 #include "SkVarAlloc.h" |
17 | 16 |
18 class GrBatchFontCache; | 17 class GrBatchFontCache; |
19 class GrBatchTarget; | 18 class GrBatchTarget; |
20 class GrGpu; | 19 class GrGpu; |
21 | 20 |
22 /** | 21 /** |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 | 181 |
183 static void HandleEviction(GrBatchAtlas::AtlasID, void*); | 182 static void HandleEviction(GrBatchAtlas::AtlasID, void*); |
184 | 183 |
185 GrContext* fContext; | 184 GrContext* fContext; |
186 SkTDynamicHash<GrBatchTextStrike, GrFontDescKey> fCache; | 185 SkTDynamicHash<GrBatchTextStrike, GrFontDescKey> fCache; |
187 GrBatchAtlas* fAtlases[kMaskFormatCount]; | 186 GrBatchAtlas* fAtlases[kMaskFormatCount]; |
188 GrBatchTextStrike* fPreserveStrike; | 187 GrBatchTextStrike* fPreserveStrike; |
189 }; | 188 }; |
190 | 189 |
191 #endif | 190 #endif |
OLD | NEW |