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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 // descriptor | 141 // descriptor |
142 void initOverride(int runIndex) { | 142 void initOverride(int runIndex) { |
143 Run& run = fRuns[runIndex]; | 143 Run& run = fRuns[runIndex]; |
144 // Push back a new subrun to fill and set the override descriptor | 144 // Push back a new subrun to fill and set the override descriptor |
145 run.push_back(); | 145 run.push_back(); |
146 run.fOverrideDescriptor.reset(new SkAutoDescriptor); | 146 run.fOverrideDescriptor.reset(new SkAutoDescriptor); |
147 } | 147 } |
148 | 148 |
149 SkGlyphCache* setupCache(int runIndex, | 149 SkGlyphCache* setupCache(int runIndex, |
150 const SkSurfaceProps& props, | 150 const SkSurfaceProps& props, |
151 SkPaint::FakeGamma fakeGamma, | 151 uint32_t scalerContextFlags, |
152 const SkPaint& skPaint, | 152 const SkPaint& skPaint, |
153 const SkMatrix* viewMatrix); | 153 const SkMatrix* viewMatrix); |
154 | 154 |
155 // Appends a glyph to the blob. If the glyph is too large, the glyph will b
e appended | 155 // Appends a glyph to the blob. If the glyph is too large, the glyph will b
e appended |
156 // as a path. | 156 // as a path. |
157 void appendGlyph(int runIndex, | 157 void appendGlyph(int runIndex, |
158 const SkRect& positions, | 158 const SkRect& positions, |
159 GrColor color, | 159 GrColor color, |
160 GrBatchTextStrike* strike, | 160 GrBatchTextStrike* strike, |
161 GrGlyph* glyph, | 161 GrGlyph* glyph, |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 // We can reuse distance field text, but only if the new viewmatrix would no
t result in | 547 // We can reuse distance field text, but only if the new viewmatrix would no
t result in |
548 // a mip change. Because there can be multiple runs in a blob, we track the
overall | 548 // a mip change. Because there can be multiple runs in a blob, we track the
overall |
549 // maximum minimum scale, and minimum maximum scale, we can support before w
e need to regen | 549 // maximum minimum scale, and minimum maximum scale, we can support before w
e need to regen |
550 SkScalar fMaxMinScale; | 550 SkScalar fMaxMinScale; |
551 SkScalar fMinMaxScale; | 551 SkScalar fMinMaxScale; |
552 int fRunCount; | 552 int fRunCount; |
553 uint8_t fTextType; | 553 uint8_t fTextType; |
554 }; | 554 }; |
555 | 555 |
556 #endif | 556 #endif |
OLD | NEW |