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 SkPictureContentInfo_DEFINED | 8 #ifndef SkPictureContentInfo_DEFINED |
9 #define SkPictureContentInfo_DEFINED | 9 #define SkPictureContentInfo_DEFINED |
10 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 int fNumPaintWithPathEffectUses; | 53 int fNumPaintWithPathEffectUses; |
54 // This field is incremented every time a paint with a path effect that is | 54 // This field is incremented every time a paint with a path effect that is |
55 // dashed, we are drawing a line, and we can use the gpu fast path | 55 // dashed, we are drawing a line, and we can use the gpu fast path |
56 int fNumFastPathDashEffects; | 56 int fNumFastPathDashEffects; |
57 // This field is incremented every time an anti-aliased drawPath call is | 57 // This field is incremented every time an anti-aliased drawPath call is |
58 // issued with a concave path | 58 // issued with a concave path |
59 int fNumAAConcavePaths; | 59 int fNumAAConcavePaths; |
60 // This field is incremented every time a drawPath call is | 60 // This field is incremented every time a drawPath call is |
61 // issued for a hairline stroked concave path. | 61 // issued for a hairline stroked concave path. |
62 int fNumAAHairlineConcavePaths; | 62 int fNumAAHairlineConcavePaths; |
| 63 // This field is incremented every time a drawPath call is |
| 64 // issued for a concave path that can be rendered with distance fields |
| 65 int fNumAADFEligibleConcavePaths; |
63 // These fields track the different layer flavors. fNumLayers is just | 66 // These fields track the different layer flavors. fNumLayers is just |
64 // a count of all saveLayers, fNumInteriorLayers is the number of layers | 67 // a count of all saveLayers, fNumInteriorLayers is the number of layers |
65 // with a layer inside them, fNumLeafLayers is the number of layers with | 68 // with a layer inside them, fNumLeafLayers is the number of layers with |
66 // no layer inside them. | 69 // no layer inside them. |
67 int fNumLayers; | 70 int fNumLayers; |
68 int fNumInteriorLayers; | 71 int fNumInteriorLayers; |
69 int fNumLeafLayers; | 72 int fNumLeafLayers; |
70 | 73 |
71 enum Flags { | 74 enum Flags { |
72 kSave_Flag = 0x1, | 75 kSave_Flag = 0x1, |
73 kSaveLayer_Flag = 0x2, | 76 kSaveLayer_Flag = 0x2, |
74 | 77 |
75 // Did the current save or saveLayer contain another saveLayer. | 78 // Did the current save or saveLayer contain another saveLayer. |
76 // Percolated back down the save stack. | 79 // Percolated back down the save stack. |
77 kContainedSaveLayer_Flag = 0x4 | 80 kContainedSaveLayer_Flag = 0x4 |
78 }; | 81 }; |
79 | 82 |
80 // Stack of save vs saveLayer information to track nesting | 83 // Stack of save vs saveLayer information to track nesting |
81 SkTDArray<uint32_t> fSaveStack; | 84 SkTDArray<uint32_t> fSaveStack; |
82 }; | 85 }; |
83 | 86 |
84 #endif | 87 #endif |
OLD | NEW |