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