OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 GrAtlasTextBlob_DEFINED | 8 #ifndef GrAtlasTextBlob_DEFINED |
9 #define GrAtlasTextBlob_DEFINED | 9 #define GrAtlasTextBlob_DEFINED |
10 | 10 |
11 #include "GrBatchAtlas.h" | 11 #include "GrBatchAtlas.h" |
12 #include "GrBatchFontCache.h" | 12 #include "GrBatchFontCache.h" |
13 #include "GrColor.h" | 13 #include "GrColor.h" |
14 #include "GrMemoryPool.h" | 14 #include "GrMemoryPool.h" |
15 #include "SkDescriptor.h" | 15 #include "SkDescriptor.h" |
16 #include "SkMaskFilter.h" | 16 #include "SkMaskFilter.h" |
17 #include "SkSurfaceProps.h" | 17 #include "SkSurfaceProps.h" |
18 #include "SkTInternalLList.h" | 18 #include "SkTInternalLList.h" |
19 | 19 |
20 class GrBlobRegenHelper; | 20 class GrBlobRegenHelper; |
21 struct GrDistanceFieldAdjustTable; | 21 struct GrDistanceFieldAdjustTable; |
22 class GrMemoryPool; | 22 class GrMemoryPool; |
23 class GrTextContext; | |
24 class SkDrawFilter; | 23 class SkDrawFilter; |
25 class SkTextBlob; | 24 class SkTextBlob; |
26 class SkTextBlobRunIterator; | 25 class SkTextBlobRunIterator; |
27 | 26 |
28 // With this flag enabled, the GrAtlasTextContext will, as a sanity check, regen
erate every blob | 27 // With this flag enabled, the GrAtlasTextContext will, as a sanity check, regen
erate every blob |
29 // that comes in to verify the integrity of its cache | 28 // that comes in to verify the integrity of its cache |
30 #define CACHE_SANITY_CHECK 0 | 29 #define CACHE_SANITY_CHECK 0 |
31 | 30 |
32 /* | 31 /* |
33 * A GrAtlasTextBlob contains a fully processed SkTextBlob, suitable for nearly
immediate drawing | 32 * A GrAtlasTextBlob contains a fully processed SkTextBlob, suitable for nearly
immediate drawing |
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 // We can reuse distance field text, but only if the new viewmatrix would no
t result in | 526 // We can reuse distance field text, but only if the new viewmatrix would no
t result in |
528 // a mip change. Because there can be multiple runs in a blob, we track the
overall | 527 // a mip change. Because there can be multiple runs in a blob, we track the
overall |
529 // maximum minimum scale, and minimum maximum scale, we can support before w
e need to regen | 528 // maximum minimum scale, and minimum maximum scale, we can support before w
e need to regen |
530 SkScalar fMaxMinScale; | 529 SkScalar fMaxMinScale; |
531 SkScalar fMinMaxScale; | 530 SkScalar fMinMaxScale; |
532 int fRunCount; | 531 int fRunCount; |
533 uint8_t fTextType; | 532 uint8_t fTextType; |
534 }; | 533 }; |
535 | 534 |
536 #endif | 535 #endif |
OLD | NEW |