| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 SkTextBlob_DEFINED | 8 #ifndef SkTextBlob_DEFINED |
| 9 #define SkTextBlob_DEFINED | 9 #define SkTextBlob_DEFINED |
| 10 | 10 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 uint32_t posStart; // index into fPosBuffer | 79 uint32_t posStart; // index into fPosBuffer |
| 80 SkPoint offset; // run offset (unsued for fully positioned
glyphs) | 80 SkPoint offset; // run offset (unsued for fully positioned
glyphs) |
| 81 SkPaint font; | 81 SkPaint font; |
| 82 GlyphPositioning positioning; | 82 GlyphPositioning positioning; |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 SkTextBlob(uint16_t* glyphs, SkScalar* pos, const SkTArray<Run>* runs, const
SkRect& bounds); | 85 SkTextBlob(uint16_t* glyphs, SkScalar* pos, const SkTArray<Run>* runs, const
SkRect& bounds); |
| 86 | 86 |
| 87 static unsigned ScalarsPerGlyph(GlyphPositioning pos); | 87 static unsigned ScalarsPerGlyph(GlyphPositioning pos); |
| 88 | 88 |
| 89 friend class SkCanvas; | 89 friend class SkBaseDevice; |
| 90 friend class SkTextBlobBuilder; | 90 friend class SkTextBlobBuilder; |
| 91 friend class TextBlobTester; | 91 friend class TextBlobTester; |
| 92 | 92 |
| 93 const SkAutoTMalloc<uint16_t> fGlyphBuffer; | 93 const SkAutoTMalloc<uint16_t> fGlyphBuffer; |
| 94 const SkAutoTMalloc<SkScalar> fPosBuffer; | 94 const SkAutoTMalloc<SkScalar> fPosBuffer; |
| 95 | 95 |
| 96 // SkTArray required here for run font destruction. | 96 // SkTArray required here for run font destruction. |
| 97 SkAutoTDelete<const SkTArray<Run> > fRuns; | 97 SkAutoTDelete<const SkTArray<Run> > fRuns; |
| 98 const SkRect fBounds; | 98 const SkRect fBounds; |
| 99 | 99 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 SkTDArray<SkScalar> fPosBuffer; | 190 SkTDArray<SkScalar> fPosBuffer; |
| 191 SkTArray<SkTextBlob::Run>* fRuns; | 191 SkTArray<SkTextBlob::Run>* fRuns; |
| 192 | 192 |
| 193 SkRect fBounds; | 193 SkRect fBounds; |
| 194 bool fDeferredBounds; | 194 bool fDeferredBounds; |
| 195 | 195 |
| 196 RunBuffer fCurrentRunBuffer; | 196 RunBuffer fCurrentRunBuffer; |
| 197 }; | 197 }; |
| 198 | 198 |
| 199 #endif // SkTextBlob_DEFINED | 199 #endif // SkTextBlob_DEFINED |
| OLD | NEW |