OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "platform/graphics/CompositingReasons.h" | 5 #include "platform/graphics/CompositingReasons.h" |
6 | 6 |
7 #include "wtf/StdLibExtras.h" | 7 #include "wtf/StdLibExtras.h" |
8 #include "wtf/text/StringBuilder.h" | 8 #include "wtf/text/StringBuilder.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 "the composited layer tree"}, | 121 "the composited layer tree"}, |
122 {CompositingReasonLayerForForeground, "layerForForeground", | 122 {CompositingReasonLayerForForeground, "layerForForeground", |
123 "Secondary layer, to contain any normal flow and positive z-index " | 123 "Secondary layer, to contain any normal flow and positive z-index " |
124 "contents on top of a negative z-index layer"}, | 124 "contents on top of a negative z-index layer"}, |
125 {CompositingReasonLayerForBackground, "layerForBackground", | 125 {CompositingReasonLayerForBackground, "layerForBackground", |
126 "Secondary layer, to contain acceleratable background content"}, | 126 "Secondary layer, to contain acceleratable background content"}, |
127 {CompositingReasonLayerForMask, "layerForMask", | 127 {CompositingReasonLayerForMask, "layerForMask", |
128 "Secondary layer, to contain the mask contents"}, | 128 "Secondary layer, to contain the mask contents"}, |
129 {CompositingReasonLayerForClippingMask, "layerForClippingMask", | 129 {CompositingReasonLayerForClippingMask, "layerForClippingMask", |
130 "Secondary layer, for clipping mask"}, | 130 "Secondary layer, for clipping mask"}, |
| 131 {CompositingReasonLayerForAncestorClippingMask, |
| 132 "layerForAncestorClippingMask", |
| 133 "Secondary layer, applies a clipping mask due to a sibling in the " |
| 134 "composited layer tree"}, |
131 {CompositingReasonLayerForScrollingBlockSelection, | 135 {CompositingReasonLayerForScrollingBlockSelection, |
132 "layerForScrollingBlockSelection", | 136 "layerForScrollingBlockSelection", |
133 "Secondary layer, to house block selection gaps for composited scrolling " | 137 "Secondary layer, to house block selection gaps for composited scrolling " |
134 "with no scrolling contents"}, | 138 "with no scrolling contents"}, |
135 {CompositingReasonLayerForDecoration, "layerForDecoration", | 139 {CompositingReasonLayerForDecoration, "layerForDecoration", |
136 "Layer painted on top of other layers as decoration"}, | 140 "Layer painted on top of other layers as decoration"}, |
137 {CompositingReasonInlineTransform, "inlineTransform", | 141 {CompositingReasonInlineTransform, "inlineTransform", |
138 "Has an inline transform, which causes subsequent layers to assume " | 142 "Has an inline transform, which causes subsequent layers to assume " |
139 "overlap"}, | 143 "overlap"}, |
140 }; | 144 }; |
(...skipping 10 matching lines...) Expand all Loading... |
151 if (reasons & kCompositingReasonStringMap[i].reason) { | 155 if (reasons & kCompositingReasonStringMap[i].reason) { |
152 if (builder.length()) | 156 if (builder.length()) |
153 builder.append(','); | 157 builder.append(','); |
154 builder.append(kCompositingReasonStringMap[i].shortName); | 158 builder.append(kCompositingReasonStringMap[i].shortName); |
155 } | 159 } |
156 } | 160 } |
157 return builder.toString(); | 161 return builder.toString(); |
158 } | 162 } |
159 | 163 |
160 } // namespace blink | 164 } // namespace blink |
OLD | NEW |