| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // be freed with sk_free. | 84 // be freed with sk_free. |
| 85 void operator delete(void* p) { sk_free(p); } | 85 void operator delete(void* p) { sk_free(p); } |
| 86 void* operator new(size_t) { | 86 void* operator new(size_t) { |
| 87 SkFAIL("All blobs are created by placement new."); | 87 SkFAIL("All blobs are created by placement new."); |
| 88 return sk_malloc_throw(0); | 88 return sk_malloc_throw(0); |
| 89 } | 89 } |
| 90 void* operator new(size_t, void* p) { return p; } | 90 void* operator new(size_t, void* p) { return p; } |
| 91 | 91 |
| 92 static unsigned ScalarsPerGlyph(GlyphPositioning pos); | 92 static unsigned ScalarsPerGlyph(GlyphPositioning pos); |
| 93 | 93 |
| 94 friend class GrTextContext; |
| 94 friend class SkBaseDevice; | 95 friend class SkBaseDevice; |
| 95 friend class SkTextBlobBuilder; | 96 friend class SkTextBlobBuilder; |
| 96 friend class TextBlobTester; | 97 friend class TextBlobTester; |
| 97 | 98 |
| 98 const int fRunCount; | 99 const int fRunCount; |
| 99 const SkRect fBounds; | 100 const SkRect fBounds; |
| 100 mutable uint32_t fUniqueID; | 101 mutable uint32_t fUniqueID; |
| 101 | 102 |
| 102 SkDEBUGCODE(size_t fStorageSize;) | 103 SkDEBUGCODE(size_t fStorageSize;) |
| 103 | 104 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 | 198 |
| 198 SkRect fBounds; | 199 SkRect fBounds; |
| 199 int fRunCount; | 200 int fRunCount; |
| 200 bool fDeferredBounds; | 201 bool fDeferredBounds; |
| 201 size_t fLastRun; // index into fStorage | 202 size_t fLastRun; // index into fStorage |
| 202 | 203 |
| 203 RunBuffer fCurrentRunBuffer; | 204 RunBuffer fCurrentRunBuffer; |
| 204 }; | 205 }; |
| 205 | 206 |
| 206 #endif // SkTextBlob_DEFINED | 207 #endif // SkTextBlob_DEFINED |
| OLD | NEW |