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 GrAtlasTextContext_DEFINED | 8 #ifndef GrAtlasTextContext_DEFINED |
9 #define GrAtlasTextContext_DEFINED | 9 #define GrAtlasTextContext_DEFINED |
10 | 10 |
11 #include "GrTextContext.h" | 11 #include "GrTextContext.h" |
12 | 12 |
| 13 #include "GrBatchAtlas.h" |
13 #include "GrGeometryProcessor.h" | 14 #include "GrGeometryProcessor.h" |
14 #include "GrMemoryPool.h" | 15 #include "GrMemoryPool.h" |
15 #include "SkDescriptor.h" | 16 #include "SkDescriptor.h" |
16 #include "SkTextBlob.h" | 17 #include "SkTextBlob.h" |
17 #include "SkTHash.h" | 18 #include "SkTHash.h" |
18 | 19 |
19 class GrBatchTextStrike; | 20 class GrBatchTextStrike; |
20 class GrPipelineBuilder; | 21 class GrPipelineBuilder; |
21 | 22 |
22 /* | 23 /* |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 , fGlyphStartIndex(0) | 95 , fGlyphStartIndex(0) |
95 , fGlyphEndIndex(0) | 96 , fGlyphEndIndex(0) |
96 , fVertexStartIndex(0) | 97 , fVertexStartIndex(0) |
97 , fVertexEndIndex(0) {} | 98 , fVertexEndIndex(0) {} |
98 GrMaskFormat fMaskFormat; | 99 GrMaskFormat fMaskFormat; |
99 uint64_t fAtlasGeneration; | 100 uint64_t fAtlasGeneration; |
100 uint32_t fGlyphStartIndex; | 101 uint32_t fGlyphStartIndex; |
101 uint32_t fGlyphEndIndex; | 102 uint32_t fGlyphEndIndex; |
102 size_t fVertexStartIndex; | 103 size_t fVertexStartIndex; |
103 size_t fVertexEndIndex; | 104 size_t fVertexEndIndex; |
| 105 GrBatchAtlas::BulkTokenReffer fBulkTokenReffer; |
104 }; | 106 }; |
105 SkSTArray<1, SubRunInfo, true> fSubRunInfo; | 107 SkSTArray<1, SubRunInfo, true> fSubRunInfo; |
106 SkAutoDescriptor fDescriptor; | 108 SkAutoDescriptor fDescriptor; |
107 SkAutoTUnref<SkTypeface> fTypeface; | 109 SkAutoTUnref<SkTypeface> fTypeface; |
108 SkRect fVertexBounds; | 110 SkRect fVertexBounds; |
109 GrColor fColor; | 111 GrColor fColor; |
110 bool fInitialized; | 112 bool fInitialized; |
111 bool fDrawAsPaths; | 113 bool fDrawAsPaths; |
112 }; | 114 }; |
113 | 115 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 // TODO use real cache | 198 // TODO use real cache |
197 static void ClearCacheEntry(uint32_t key, BitmapTextBlob**); | 199 static void ClearCacheEntry(uint32_t key, BitmapTextBlob**); |
198 SkTHashMap<uint32_t, BitmapTextBlob*, BitmapTextBlob::Hash> fCache; | 200 SkTHashMap<uint32_t, BitmapTextBlob*, BitmapTextBlob::Hash> fCache; |
199 | 201 |
200 friend class BitmapTextBatch; | 202 friend class BitmapTextBatch; |
201 | 203 |
202 typedef GrTextContext INHERITED; | 204 typedef GrTextContext INHERITED; |
203 }; | 205 }; |
204 | 206 |
205 #endif | 207 #endif |
OLD | NEW |