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 "config.h" | 5 #include "config.h" |
6 #include "platform/graphics/CompositingReasons.h" | 6 #include "platform/graphics/CompositingReasons.h" |
7 | 7 |
8 #include "wtf/StdLibExtras.h" | 8 #include "wtf/StdLibExtras.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 "Has a perspective transform that needs to be known by compositor becaus
e of 3d descendants" }, | 138 "Has a perspective transform that needs to be known by compositor becaus
e of 3d descendants" }, |
139 { CompositingReasonPreserve3DWith3DDescendants, | 139 { CompositingReasonPreserve3DWith3DDescendants, |
140 "preserve3DWith3DDescendants", | 140 "preserve3DWith3DDescendants", |
141 "Has a preserves-3d property that needs to be known by compositor becaus
e of 3d descendants" }, | 141 "Has a preserves-3d property that needs to be known by compositor becaus
e of 3d descendants" }, |
142 { CompositingReasonReflectionOfCompositedParent, | 142 { CompositingReasonReflectionOfCompositedParent, |
143 "reflectionOfCompositedParent", | 143 "reflectionOfCompositedParent", |
144 "Is a reflection of a composited layer" }, | 144 "Is a reflection of a composited layer" }, |
145 { CompositingReasonIsolateCompositedDescendants, | 145 { CompositingReasonIsolateCompositedDescendants, |
146 "isolateCompositedDescendants", | 146 "isolateCompositedDescendants", |
147 "Should isolate descendants to apply a blend effect" }, | 147 "Should isolate descendants to apply a blend effect" }, |
| 148 { CompositingReasonPositionFixedWithCompositedDescendants, |
| 149 "positionFixedWithCompositedDescendants" |
| 150 "Is a position:fixed element with composited descendants" }, |
148 { CompositingReasonRoot, | 151 { CompositingReasonRoot, |
149 "root", | 152 "root", |
150 "Is the root layer" }, | 153 "Is the root layer" }, |
151 { CompositingReasonLayerForAncestorClip, | 154 { CompositingReasonLayerForAncestorClip, |
152 "layerForAncestorClip", | 155 "layerForAncestorClip", |
153 "Secondary layer, applies a clip due to a sibling in the compositing tre
e" }, | 156 "Secondary layer, applies a clip due to a sibling in the compositing tre
e" }, |
154 { CompositingReasonLayerForDescendantClip, | 157 { CompositingReasonLayerForDescendantClip, |
155 "layerForDescendantClip", | 158 "layerForDescendantClip", |
156 "Secondary layer, to clip descendants of the owning layer" }, | 159 "Secondary layer, to clip descendants of the owning layer" }, |
157 { CompositingReasonLayerForPerspective, | 160 { CompositingReasonLayerForPerspective, |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 "layerForScrollingBlockSelection", | 200 "layerForScrollingBlockSelection", |
198 "Secondary layer, to house block selection gaps for composited scrolling
with no scrolling contents" }, | 201 "Secondary layer, to house block selection gaps for composited scrolling
with no scrolling contents" }, |
199 { CompositingReasonInlineTransform, | 202 { CompositingReasonInlineTransform, |
200 "inlineTransform", | 203 "inlineTransform", |
201 "Has an inline transform, which causes subsequent layers to assume overl
ap" }, | 204 "Has an inline transform, which causes subsequent layers to assume overl
ap" }, |
202 }; | 205 }; |
203 | 206 |
204 size_t kNumberOfCompositingReasons = WTF_ARRAY_LENGTH(kCompositingReasonStringMa
p); | 207 size_t kNumberOfCompositingReasons = WTF_ARRAY_LENGTH(kCompositingReasonStringMa
p); |
205 | 208 |
206 } // namespace blink | 209 } // namespace blink |
OLD | NEW |