| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 private: | 72 private: |
| 73 const RunRecord* fCurrentRun; | 73 const RunRecord* fCurrentRun; |
| 74 int fRemainingRuns; | 74 int fRemainingRuns; |
| 75 | 75 |
| 76 SkDEBUGCODE(uint8_t* fStorageTop;) | 76 SkDEBUGCODE(uint8_t* fStorageTop;) |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 SkTextBlob(int runCount, const SkRect& bounds); | 79 SkTextBlob(int runCount, const SkRect& bounds); |
| 80 | 80 |
| 81 virtual ~SkTextBlob(); | 81 virtual ~SkTextBlob(); |
| 82 virtual void internal_dispose() const SK_OVERRIDE; | 82 |
| 83 // Memory for objects of this class is created with sk_malloc rather than op
erator new and must |
| 84 // be freed with sk_free. |
| 85 void operator delete(void* p) { sk_free(p); } |
| 83 | 86 |
| 84 static unsigned ScalarsPerGlyph(GlyphPositioning pos); | 87 static unsigned ScalarsPerGlyph(GlyphPositioning pos); |
| 85 | 88 |
| 86 friend class SkBaseDevice; | 89 friend class SkBaseDevice; |
| 87 friend class SkTextBlobBuilder; | 90 friend class SkTextBlobBuilder; |
| 88 friend class TextBlobTester; | 91 friend class TextBlobTester; |
| 89 | 92 |
| 90 const int fRunCount; | 93 const int fRunCount; |
| 91 const SkRect fBounds; | 94 const SkRect fBounds; |
| 92 mutable uint32_t fUniqueID; | 95 mutable uint32_t fUniqueID; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 | 189 |
| 187 SkRect fBounds; | 190 SkRect fBounds; |
| 188 int fRunCount; | 191 int fRunCount; |
| 189 bool fDeferredBounds; | 192 bool fDeferredBounds; |
| 190 size_t fLastRun; // index into fStorage | 193 size_t fLastRun; // index into fStorage |
| 191 | 194 |
| 192 RunBuffer fCurrentRunBuffer; | 195 RunBuffer fCurrentRunBuffer; |
| 193 }; | 196 }; |
| 194 | 197 |
| 195 #endif // SkTextBlob_DEFINED | 198 #endif // SkTextBlob_DEFINED |
| OLD | NEW |