| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 "Is the root layer" }, | 111 "Is the root layer" }, |
| 112 { CompositingReasonLayerForAncestorClip, | 112 { CompositingReasonLayerForAncestorClip, |
| 113 "layerForAncestorClip", | 113 "layerForAncestorClip", |
| 114 "Secondary layer, applies a clip due to a sibling in the compositing tre
e" }, | 114 "Secondary layer, applies a clip due to a sibling in the compositing tre
e" }, |
| 115 { CompositingReasonLayerForDescendantClip, | 115 { CompositingReasonLayerForDescendantClip, |
| 116 "layerForDescendantClip", | 116 "layerForDescendantClip", |
| 117 "Secondary layer, to clip descendants of the owning layer" }, | 117 "Secondary layer, to clip descendants of the owning layer" }, |
| 118 { CompositingReasonLayerForPerspective, | 118 { CompositingReasonLayerForPerspective, |
| 119 "layerForPerspective", | 119 "layerForPerspective", |
| 120 "Secondary layer, to house the perspective transform for all descendants
" }, | 120 "Secondary layer, to house the perspective transform for all descendants
" }, |
| 121 { CompositingReasonLayerForHorizontalScrollbar, | |
| 122 "layerForHorizontalScrollbar", | |
| 123 "Secondary layer, the horizontal scrollbar layer" }, | |
| 124 { CompositingReasonLayerForVerticalScrollbar, | |
| 125 "layerForVerticalScrollbar", | |
| 126 "Secondary layer, the vertical scrollbar layer" }, | |
| 127 { CompositingReasonLayerForOverflowControlsHost, | 121 { CompositingReasonLayerForOverflowControlsHost, |
| 128 "layerForOverflowControlsHost", | 122 "layerForOverflowControlsHost", |
| 129 "Secondary layer, the overflow controls host layer" }, | 123 "Secondary layer, the overflow controls host layer" }, |
| 130 { CompositingReasonLayerForScrollingContents, | |
| 131 "layerForScrollingContents", | |
| 132 "Secondary layer, to house contents that can be scrolled" }, | |
| 133 { CompositingReasonLayerForScrollingContainer, | |
| 134 "layerForScrollingContainer", | |
| 135 "Secondary layer, used to position the scolling contents while scrolling
" }, | |
| 136 { CompositingReasonLayerForSquashingContents, | 124 { CompositingReasonLayerForSquashingContents, |
| 137 "layerForSquashingContents", | 125 "layerForSquashingContents", |
| 138 "Secondary layer, home for a group of squashable content" }, | 126 "Secondary layer, home for a group of squashable content" }, |
| 139 { CompositingReasonLayerForSquashingContainer, | 127 { CompositingReasonLayerForSquashingContainer, |
| 140 "layerForSquashingContainer", | 128 "layerForSquashingContainer", |
| 141 "Secondary layer, no-op layer to place the squashing layer correctly in
the composited layer tree" }, | 129 "Secondary layer, no-op layer to place the squashing layer correctly in
the composited layer tree" }, |
| 142 { CompositingReasonLayerForForeground, | 130 { CompositingReasonLayerForForeground, |
| 143 "layerForForeground", | 131 "layerForForeground", |
| 144 "Secondary layer, to contain any normal flow and positive z-index conten
ts on top of a negative z-index layer" }, | 132 "Secondary layer, to contain any normal flow and positive z-index conten
ts on top of a negative z-index layer" }, |
| 145 { CompositingReasonLayerForBackground, | 133 { CompositingReasonLayerForBackground, |
| 146 "layerForBackground", | 134 "layerForBackground", |
| 147 "Secondary layer, to contain acceleratable background content" }, | 135 "Secondary layer, to contain acceleratable background content" }, |
| 148 { CompositingReasonLayerForMask, | 136 { CompositingReasonLayerForMask, |
| 149 "layerForMask", | 137 "layerForMask", |
| 150 "Secondary layer, to contain the mask contents" }, | 138 "Secondary layer, to contain the mask contents" }, |
| 151 { CompositingReasonLayerForClippingMask, | 139 { CompositingReasonLayerForClippingMask, |
| 152 "layerForClippingMask", | 140 "layerForClippingMask", |
| 153 "Secondary layer, for clipping mask" }, | 141 "Secondary layer, for clipping mask" }, |
| 154 { CompositingReasonLayerForScrollingBlockSelection, | |
| 155 "layerForScrollingBlockSelection", | |
| 156 "Secondary layer, to house block selection gaps for composited scrolling
with no scrolling contents" }, | |
| 157 { CompositingReasonInlineTransform, | 142 { CompositingReasonInlineTransform, |
| 158 "inlineTransform", | 143 "inlineTransform", |
| 159 "Has an inline transform, which causes subsequent layers to assume overl
ap" }, | 144 "Has an inline transform, which causes subsequent layers to assume overl
ap" }, |
| 160 }; | 145 }; |
| 161 | 146 |
| 162 size_t kNumberOfCompositingReasons = WTF_ARRAY_LENGTH(kCompositingReasonStringMa
p); | 147 size_t kNumberOfCompositingReasons = WTF_ARRAY_LENGTH(kCompositingReasonStringMa
p); |
| 163 | 148 |
| 164 } // namespace blink | 149 } // namespace blink |
| OLD | NEW |