| 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 | 8 |
| 9 namespace blink { | 9 namespace blink { |
| 10 | 10 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 "layerForOverflowControlsHost", | 130 "layerForOverflowControlsHost", |
| 131 "Secondary layer, the overflow controls host layer" }, | 131 "Secondary layer, the overflow controls host layer" }, |
| 132 { CompositingReasonLayerForScrollCorner, | 132 { CompositingReasonLayerForScrollCorner, |
| 133 "layerForScrollCorner", | 133 "layerForScrollCorner", |
| 134 "Secondary layer, the scroll corner layer" }, | 134 "Secondary layer, the scroll corner layer" }, |
| 135 { CompositingReasonLayerForScrollingContents, | 135 { CompositingReasonLayerForScrollingContents, |
| 136 "layerForScrollingContents", | 136 "layerForScrollingContents", |
| 137 "Secondary layer, to house contents that can be scrolled" }, | 137 "Secondary layer, to house contents that can be scrolled" }, |
| 138 { CompositingReasonLayerForScrollingContainer, | 138 { CompositingReasonLayerForScrollingContainer, |
| 139 "layerForScrollingContainer", | 139 "layerForScrollingContainer", |
| 140 "Secondary layer, used to position the scolling contents while scrolling
" }, | 140 "Secondary layer, used to position the scrolling contents while scrollin
g" }, |
| 141 { CompositingReasonLayerForSquashingContents, | 141 { CompositingReasonLayerForSquashingContents, |
| 142 "layerForSquashingContents", | 142 "layerForSquashingContents", |
| 143 "Secondary layer, home for a group of squashable content" }, | 143 "Secondary layer, home for a group of squashable content" }, |
| 144 { CompositingReasonLayerForSquashingContainer, | 144 { CompositingReasonLayerForSquashingContainer, |
| 145 "layerForSquashingContainer", | 145 "layerForSquashingContainer", |
| 146 "Secondary layer, no-op layer to place the squashing layer correctly in
the composited layer tree" }, | 146 "Secondary layer, no-op layer to place the squashing layer correctly in
the composited layer tree" }, |
| 147 { CompositingReasonLayerForForeground, | 147 { CompositingReasonLayerForForeground, |
| 148 "layerForForeground", | 148 "layerForForeground", |
| 149 "Secondary layer, to contain any normal flow and positive z-index conten
ts on top of a negative z-index layer" }, | 149 "Secondary layer, to contain any normal flow and positive z-index conten
ts on top of a negative z-index layer" }, |
| 150 { CompositingReasonLayerForBackground, | 150 { CompositingReasonLayerForBackground, |
| 151 "layerForBackground", | 151 "layerForBackground", |
| 152 "Secondary layer, to contain acceleratable background content" }, | 152 "Secondary layer, to contain acceleratable background content" }, |
| 153 { CompositingReasonLayerForMask, | 153 { CompositingReasonLayerForMask, |
| 154 "layerForMask", | 154 "layerForMask", |
| 155 "Secondary layer, to contain the mask contents" }, | 155 "Secondary layer, to contain the mask contents" }, |
| 156 { CompositingReasonLayerForClippingMask, | 156 { CompositingReasonLayerForClippingMask, |
| 157 "layerForClippingMask", | 157 "layerForClippingMask", |
| 158 "Secondary layer, for clipping mask" }, | 158 "Secondary layer, for clipping mask" }, |
| 159 { CompositingReasonLayerForScrollingBlockSelection, | 159 { CompositingReasonLayerForScrollingBlockSelection, |
| 160 "layerForScrollingBlockSelection", | 160 "layerForScrollingBlockSelection", |
| 161 "Secondary layer, to house block selection gaps for composited scrolling
with no scrolling contents" }, | 161 "Secondary layer, to house block selection gaps for composited scrolling
with no scrolling contents" }, |
| 162 { CompositingReasonInlineTransform, | 162 { CompositingReasonInlineTransform, |
| 163 "inlineTransform", | 163 "inlineTransform", |
| 164 "Has an inline transform, which causes subsequent layers to assume overl
ap" }, | 164 "Has an inline transform, which causes subsequent layers to assume overl
ap" }, |
| 165 }; | 165 }; |
| 166 | 166 |
| 167 const size_t kNumberOfCompositingReasons = WTF_ARRAY_LENGTH(kCompositingReasonSt
ringMap); | 167 const size_t kNumberOfCompositingReasons = WTF_ARRAY_LENGTH(kCompositingReasonSt
ringMap); |
| 168 | 168 |
| 169 } // namespace blink | 169 } // namespace blink |
| OLD | NEW |