| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 bool done() const; | 62 bool done() const; |
| 63 void next(); | 63 void next(); |
| 64 | 64 |
| 65 uint32_t glyphCount() const; | 65 uint32_t glyphCount() const; |
| 66 const uint16_t* glyphs() const; | 66 const uint16_t* glyphs() const; |
| 67 const SkScalar* pos() const; | 67 const SkScalar* pos() const; |
| 68 const SkPoint& offset() const; | 68 const SkPoint& offset() const; |
| 69 void applyFontToPaint(SkPaint*) const; | 69 void applyFontToPaint(SkPaint*) const; |
| 70 GlyphPositioning positioning() const; | 70 GlyphPositioning positioning() const; |
| 71 bool isLCD() const; |
| 71 | 72 |
| 72 private: | 73 private: |
| 73 const RunRecord* fCurrentRun; | 74 const RunRecord* fCurrentRun; |
| 74 int fRemainingRuns; | 75 int fRemainingRuns; |
| 75 | 76 |
| 76 SkDEBUGCODE(uint8_t* fStorageTop;) | 77 SkDEBUGCODE(uint8_t* fStorageTop;) |
| 77 }; | 78 }; |
| 78 | 79 |
| 79 SkTextBlob(int runCount, const SkRect& bounds); | 80 SkTextBlob(int runCount, const SkRect& bounds); |
| 80 | 81 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 | 201 |
| 201 SkRect fBounds; | 202 SkRect fBounds; |
| 202 int fRunCount; | 203 int fRunCount; |
| 203 bool fDeferredBounds; | 204 bool fDeferredBounds; |
| 204 size_t fLastRun; // index into fStorage | 205 size_t fLastRun; // index into fStorage |
| 205 | 206 |
| 206 RunBuffer fCurrentRunBuffer; | 207 RunBuffer fCurrentRunBuffer; |
| 207 }; | 208 }; |
| 208 | 209 |
| 209 #endif // SkTextBlob_DEFINED | 210 #endif // SkTextBlob_DEFINED |
| OLD | NEW |