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 |
| 11 #include "../private/SkTemplates.h" |
11 #include "SkPaint.h" | 12 #include "SkPaint.h" |
12 #include "SkRefCnt.h" | 13 #include "SkRefCnt.h" |
13 #include "SkTArray.h" | |
14 #include "SkTDArray.h" | |
15 | 14 |
16 class SkReadBuffer; | 15 class SkReadBuffer; |
17 class SkWriteBuffer; | 16 class SkWriteBuffer; |
18 | 17 |
19 /** \class SkTextBlob | 18 /** \class SkTextBlob |
20 | 19 |
21 SkTextBlob combines multiple text runs into an immutable, ref-counted struct
ure. | 20 SkTextBlob combines multiple text runs into an immutable, ref-counted struct
ure. |
22 */ | 21 */ |
23 class SK_API SkTextBlob : public SkRefCnt { | 22 class SK_API SkTextBlob : public SkRefCnt { |
24 public: | 23 public: |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 | 174 |
176 SkRect fBounds; | 175 SkRect fBounds; |
177 int fRunCount; | 176 int fRunCount; |
178 bool fDeferredBounds; | 177 bool fDeferredBounds; |
179 size_t fLastRun; // index into fStorage | 178 size_t fLastRun; // index into fStorage |
180 | 179 |
181 RunBuffer fCurrentRunBuffer; | 180 RunBuffer fCurrentRunBuffer; |
182 }; | 181 }; |
183 | 182 |
184 #endif // SkTextBlob_DEFINED | 183 #endif // SkTextBlob_DEFINED |
OLD | NEW |