| 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 const SkPaint& skPaint, | 152 const SkPaint& skPaint, |
| 152 const SkMatrix* viewMatrix, | 153 const SkMatrix* viewMatrix); |
| 153 bool noGamma); | |
| 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, |
| 162 GrFontScaler* scaler, const SkGlyph& skGlyph, | 162 GrFontScaler* scaler, const SkGlyph& skGlyph, |
| 163 SkScalar x, SkScalar y, SkScalar scale, bool applyVM); | 163 SkScalar x, SkScalar y, SkScalar scale, bool applyVM); |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 // We can reuse distance field text, but only if the new viewmatrix would no
t result in | 526 // We can reuse distance field text, but only if the new viewmatrix would no
t result in |
| 527 // a mip change. Because there can be multiple runs in a blob, we track the
overall | 527 // a mip change. Because there can be multiple runs in a blob, we track the
overall |
| 528 // maximum minimum scale, and minimum maximum scale, we can support before w
e need to regen | 528 // maximum minimum scale, and minimum maximum scale, we can support before w
e need to regen |
| 529 SkScalar fMaxMinScale; | 529 SkScalar fMaxMinScale; |
| 530 SkScalar fMinMaxScale; | 530 SkScalar fMinMaxScale; |
| 531 int fRunCount; | 531 int fRunCount; |
| 532 uint8_t fTextType; | 532 uint8_t fTextType; |
| 533 }; | 533 }; |
| 534 | 534 |
| 535 #endif | 535 #endif |
| OLD | NEW |