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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 "the composited layer tree"}, | 120 "the composited layer tree"}, |
121 {CompositingReasonLayerForForeground, "layerForForeground", | 121 {CompositingReasonLayerForForeground, "layerForForeground", |
122 "Secondary layer, to contain any normal flow and positive z-index " | 122 "Secondary layer, to contain any normal flow and positive z-index " |
123 "contents on top of a negative z-index layer"}, | 123 "contents on top of a negative z-index layer"}, |
124 {CompositingReasonLayerForBackground, "layerForBackground", | 124 {CompositingReasonLayerForBackground, "layerForBackground", |
125 "Secondary layer, to contain acceleratable background content"}, | 125 "Secondary layer, to contain acceleratable background content"}, |
126 {CompositingReasonLayerForMask, "layerForMask", | 126 {CompositingReasonLayerForMask, "layerForMask", |
127 "Secondary layer, to contain the mask contents"}, | 127 "Secondary layer, to contain the mask contents"}, |
128 {CompositingReasonLayerForClippingMask, "layerForClippingMask", | 128 {CompositingReasonLayerForClippingMask, "layerForClippingMask", |
129 "Secondary layer, for clipping mask"}, | 129 "Secondary layer, for clipping mask"}, |
130 {CompositingReasonLayerForAncestorClippingMask, | |
131 "layerForAncestorClippingMask", | |
132 "Secondary layer, applies a clipping mask due to a sibling in the " | |
133 "composited layer tree"}, | |
134 {CompositingReasonLayerForScrollingBlockSelection, | 130 {CompositingReasonLayerForScrollingBlockSelection, |
135 "layerForScrollingBlockSelection", | 131 "layerForScrollingBlockSelection", |
136 "Secondary layer, to house block selection gaps for composited scrolling " | 132 "Secondary layer, to house block selection gaps for composited scrolling " |
137 "with no scrolling contents"}, | 133 "with no scrolling contents"}, |
138 {CompositingReasonLayerForDecoration, "layerForDecoration", | 134 {CompositingReasonLayerForDecoration, "layerForDecoration", |
139 "Layer painted on top of other layers as decoration"}, | 135 "Layer painted on top of other layers as decoration"}, |
140 {CompositingReasonInlineTransform, "inlineTransform", | 136 {CompositingReasonInlineTransform, "inlineTransform", |
141 "Has an inline transform, which causes subsequent layers to assume " | 137 "Has an inline transform, which causes subsequent layers to assume " |
142 "overlap"}, | 138 "overlap"}, |
143 }; | 139 }; |
144 | 140 |
145 const size_t kNumberOfCompositingReasons = | 141 const size_t kNumberOfCompositingReasons = |
146 WTF_ARRAY_LENGTH(kCompositingReasonStringMap); | 142 WTF_ARRAY_LENGTH(kCompositingReasonStringMap); |
147 | 143 |
148 } // namespace blink | 144 } // namespace blink |
OLD | NEW |