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 GrAtlasTextBlob_DEFINED | 8 #ifndef GrAtlasTextBlob_DEFINED |
9 #define GrAtlasTextBlob_DEFINED | 9 #define GrAtlasTextBlob_DEFINED |
10 | 10 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 , fVertexEndIndex(that.fVertexEndIndex) | 86 , fVertexEndIndex(that.fVertexEndIndex) |
87 , fGlyphStartIndex(that.fGlyphStartIndex) | 87 , fGlyphStartIndex(that.fGlyphStartIndex) |
88 , fGlyphEndIndex(that.fGlyphEndIndex) | 88 , fGlyphEndIndex(that.fGlyphEndIndex) |
89 , fTextRatio(that.fTextRatio) | 89 , fTextRatio(that.fTextRatio) |
90 , fMaskFormat(that.fMaskFormat) | 90 , fMaskFormat(that.fMaskFormat) |
91 , fDrawAsDistanceFields(that.fDrawAsDistanceFields) | 91 , fDrawAsDistanceFields(that.fDrawAsDistanceFields) |
92 , fUseLCDText(that.fUseLCDText) { | 92 , fUseLCDText(that.fUseLCDText) { |
93 } | 93 } |
94 // Distance field text cannot draw coloremoji, and so has to fall ba
ck. However, | 94 // Distance field text cannot draw coloremoji, and so has to fall ba
ck. However, |
95 // though the distance field text and the coloremoji may share the s
ame run, they | 95 // though the distance field text and the coloremoji may share the s
ame run, they |
96 // will have different descriptors. If fOverrideDescriptor is non-N
ULL, then it | 96 // will have different descriptors. If fOverrideDescriptor is non-n
ullptr, then it |
97 // will be used in place of the run's descriptor to regen texture co
ords | 97 // will be used in place of the run's descriptor to regen texture co
ords |
98 // TODO we could have a descriptor cache, it would reduce the size o
f these blobs | 98 // TODO we could have a descriptor cache, it would reduce the size o
f these blobs |
99 // significantly, and then the subrun could just have a refed pointe
r to the | 99 // significantly, and then the subrun could just have a refed pointe
r to the |
100 // correct descriptor. | 100 // correct descriptor. |
101 GrBatchAtlas::BulkUseTokenUpdater fBulkUseToken; | 101 GrBatchAtlas::BulkUseTokenUpdater fBulkUseToken; |
102 SkAutoTUnref<GrBatchTextStrike> fStrike; | 102 SkAutoTUnref<GrBatchTextStrike> fStrike; |
103 uint64_t fAtlasGeneration; | 103 uint64_t fAtlasGeneration; |
104 size_t fVertexStartIndex; | 104 size_t fVertexStartIndex; |
105 size_t fVertexEndIndex; | 105 size_t fVertexEndIndex; |
106 uint32_t fGlyphStartIndex; | 106 uint32_t fGlyphStartIndex; |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 void setHasDistanceField() { fTextType |= kHasDistanceField_TextType; } | 238 void setHasDistanceField() { fTextType |= kHasDistanceField_TextType; } |
239 void setHasBitmap() { fTextType |= kHasBitmap_TextType; } | 239 void setHasBitmap() { fTextType |= kHasBitmap_TextType; } |
240 | 240 |
241 #ifdef CACHE_SANITY_CHECK | 241 #ifdef CACHE_SANITY_CHECK |
242 static void AssertEqual(const GrAtlasTextBlob&, const GrAtlasTextBlob&); | 242 static void AssertEqual(const GrAtlasTextBlob&, const GrAtlasTextBlob&); |
243 size_t fSize; | 243 size_t fSize; |
244 #endif | 244 #endif |
245 }; | 245 }; |
246 | 246 |
247 #endif | 247 #endif |
OLD | NEW |