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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // To ensure we always have one subrun, we push back a fresh run her
e | 70 // To ensure we always have one subrun, we push back a fresh run her
e |
71 fSubRunInfo.push_back(); | 71 fSubRunInfo.push_back(); |
72 } | 72 } |
73 struct SubRunInfo { | 73 struct SubRunInfo { |
74 SubRunInfo() | 74 SubRunInfo() |
75 : fAtlasGeneration(GrBatchAtlas::kInvalidAtlasGeneration) | 75 : fAtlasGeneration(GrBatchAtlas::kInvalidAtlasGeneration) |
76 , fVertexStartIndex(0) | 76 , fVertexStartIndex(0) |
77 , fVertexEndIndex(0) | 77 , fVertexEndIndex(0) |
78 , fGlyphStartIndex(0) | 78 , fGlyphStartIndex(0) |
79 , fGlyphEndIndex(0) | 79 , fGlyphEndIndex(0) |
80 , fDrawAsDistanceFields(false) {} | 80 , fTextRatio(1.0f) |
| 81 , fMaskFormat(kA8_GrMaskFormat) |
| 82 , fDrawAsDistanceFields(false) |
| 83 , fUseLCDText(false) {} |
81 SubRunInfo(const SubRunInfo& that) | 84 SubRunInfo(const SubRunInfo& that) |
82 : fBulkUseToken(that.fBulkUseToken) | 85 : fBulkUseToken(that.fBulkUseToken) |
83 , fStrike(SkSafeRef(that.fStrike.get())) | 86 , fStrike(SkSafeRef(that.fStrike.get())) |
84 , fAtlasGeneration(that.fAtlasGeneration) | 87 , fAtlasGeneration(that.fAtlasGeneration) |
85 , fVertexStartIndex(that.fVertexStartIndex) | 88 , fVertexStartIndex(that.fVertexStartIndex) |
86 , fVertexEndIndex(that.fVertexEndIndex) | 89 , fVertexEndIndex(that.fVertexEndIndex) |
87 , fGlyphStartIndex(that.fGlyphStartIndex) | 90 , fGlyphStartIndex(that.fGlyphStartIndex) |
88 , fGlyphEndIndex(that.fGlyphEndIndex) | 91 , fGlyphEndIndex(that.fGlyphEndIndex) |
89 , fTextRatio(that.fTextRatio) | 92 , fTextRatio(that.fTextRatio) |
90 , fMaskFormat(that.fMaskFormat) | 93 , fMaskFormat(that.fMaskFormat) |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 void setHasDistanceField() { fTextType |= kHasDistanceField_TextType; } | 241 void setHasDistanceField() { fTextType |= kHasDistanceField_TextType; } |
239 void setHasBitmap() { fTextType |= kHasBitmap_TextType; } | 242 void setHasBitmap() { fTextType |= kHasBitmap_TextType; } |
240 | 243 |
241 #ifdef CACHE_SANITY_CHECK | 244 #ifdef CACHE_SANITY_CHECK |
242 static void AssertEqual(const GrAtlasTextBlob&, const GrAtlasTextBlob&); | 245 static void AssertEqual(const GrAtlasTextBlob&, const GrAtlasTextBlob&); |
243 size_t fSize; | 246 size_t fSize; |
244 #endif | 247 #endif |
245 }; | 248 }; |
246 | 249 |
247 #endif | 250 #endif |
OLD | NEW |