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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 "Cannot be squashed as the squashing layer would become too sparse" }, | 72 "Cannot be squashed as the squashing layer would become too sparse" }, |
73 { CompositingReasonSquashingClippingContainerMismatch, | 73 { CompositingReasonSquashingClippingContainerMismatch, |
74 "squashingClippingContainerMismatch", | 74 "squashingClippingContainerMismatch", |
75 "Cannot be squashed because this layer has a different clipping containe
r than the squashing layer" }, | 75 "Cannot be squashed because this layer has a different clipping containe
r than the squashing layer" }, |
76 { CompositingReasonSquashingOpacityAncestorMismatch, | 76 { CompositingReasonSquashingOpacityAncestorMismatch, |
77 "squashingOpacityAncestorMismatch", | 77 "squashingOpacityAncestorMismatch", |
78 "Cannot be squashed because this layer has a different opacity ancestor
than the squashing layer" }, | 78 "Cannot be squashed because this layer has a different opacity ancestor
than the squashing layer" }, |
79 { CompositingReasonSquashingTransformAncestorMismatch, | 79 { CompositingReasonSquashingTransformAncestorMismatch, |
80 "squashingTransformAncestorMismatch", | 80 "squashingTransformAncestorMismatch", |
81 "Cannot be squashed because this layer has a different transform ancesto
r than the squashing layer" }, | 81 "Cannot be squashed because this layer has a different transform ancesto
r than the squashing layer" }, |
82 { CompositingReasonSquashingFilterAncestorMismatch, | 82 { CompositingReasonSquashingFilterMismatch, |
83 "squashingFilterAncestorMismatch", | 83 "squashingFilterAncestorMismatch", |
84 "Cannot be squashed because this layer has a different filter ancestor t
han the squashing layer" }, | 84 "Cannot be squashed because this layer has a different filter ancestor t
han the squashing layer, or this layer has a filter" }, |
85 { CompositingReasonSquashingWouldBreakPaintOrder, | 85 { CompositingReasonSquashingWouldBreakPaintOrder, |
86 "squashingWouldBreakPaintOrder", | 86 "squashingWouldBreakPaintOrder", |
87 "Cannot be squashed without breaking paint order" }, | 87 "Cannot be squashed without breaking paint order" }, |
88 { CompositingReasonSquashingVideoIsDisallowed, | 88 { CompositingReasonSquashingVideoIsDisallowed, |
89 "squashingVideoIsDisallowed", | 89 "squashingVideoIsDisallowed", |
90 "Squashing video is not supported" }, | 90 "Squashing video is not supported" }, |
91 { CompositingReasonSquashedLayerClipsCompositingDescendants, | 91 { CompositingReasonSquashedLayerClipsCompositingDescendants, |
92 "squashedLayerClipsCompositingDescendants", | 92 "squashedLayerClipsCompositingDescendants", |
93 "Squashing a layer that clips composited descendants is not supported."
}, | 93 "Squashing a layer that clips composited descendants is not supported."
}, |
94 { CompositingReasonSquashingRenderPartIsDisallowed, | 94 { CompositingReasonSquashingRenderPartIsDisallowed, |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 "layerForScrollingBlockSelection", | 182 "layerForScrollingBlockSelection", |
183 "Secondary layer, to house block selection gaps for composited scrolling
with no scrolling contents" }, | 183 "Secondary layer, to house block selection gaps for composited scrolling
with no scrolling contents" }, |
184 { CompositingReasonInlineTransform, | 184 { CompositingReasonInlineTransform, |
185 "inlineTransform", | 185 "inlineTransform", |
186 "Has an inline transform, which causes subsequent layers to assume overl
ap" }, | 186 "Has an inline transform, which causes subsequent layers to assume overl
ap" }, |
187 }; | 187 }; |
188 | 188 |
189 size_t kNumberOfCompositingReasons = WTF_ARRAY_LENGTH(kCompositingReasonStringMa
p); | 189 size_t kNumberOfCompositingReasons = WTF_ARRAY_LENGTH(kCompositingReasonStringMa
p); |
190 | 190 |
191 } // namespace blink | 191 } // namespace blink |
OLD | NEW |