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 "GrCaps.h" |
12 #include "GrGlyph.h" | 13 #include "GrGlyph.h" |
13 #include "SkGlyphCache.h" | 14 #include "SkGlyphCache.h" |
14 #include "SkTDynamicHash.h" | 15 #include "SkTDynamicHash.h" |
15 #include "SkVarAlloc.h" | 16 #include "SkVarAlloc.h" |
16 | 17 |
17 class GrBatchFontCache; | 18 class GrBatchFontCache; |
18 class GrGpu; | 19 class GrGpu; |
19 | 20 |
20 /** | 21 /** |
21 * The GrBatchTextStrike manages a pool of CPU backing memory for GrGlyphs. Th
is backing memory | 22 * The GrBatchTextStrike manages a pool of CPU backing memory for GrGlyphs. Th
is backing memory |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 | 232 |
232 using StrikeHash = SkTDynamicHash<GrBatchTextStrike, SkDescriptor>; | 233 using StrikeHash = SkTDynamicHash<GrBatchTextStrike, SkDescriptor>; |
233 GrContext* fContext; | 234 GrContext* fContext; |
234 StrikeHash fCache; | 235 StrikeHash fCache; |
235 GrBatchAtlas* fAtlases[kMaskFormatCount]; | 236 GrBatchAtlas* fAtlases[kMaskFormatCount]; |
236 GrBatchTextStrike* fPreserveStrike; | 237 GrBatchTextStrike* fPreserveStrike; |
237 GrBatchAtlasConfig fAtlasConfigs[kMaskFormatCount]; | 238 GrBatchAtlasConfig fAtlasConfigs[kMaskFormatCount]; |
238 }; | 239 }; |
239 | 240 |
240 #endif | 241 #endif |
OLD | NEW |