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 #ifndef CompositingReasons_h | 5 #ifndef CompositingReasons_h |
6 #define CompositingReasons_h | 6 #define CompositingReasons_h |
7 | 7 |
8 #include "wtf/MathExtras.h" | 8 #include "wtf/MathExtras.h" |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 const uint64_t CompositingReasonLayerForVerticalScrollbar = UINT64_
C(1) << 37; | 63 const uint64_t CompositingReasonLayerForVerticalScrollbar = UINT64_
C(1) << 37; |
64 const uint64_t CompositingReasonLayerForScrollCorner = UINT64_
C(1) << 38; | 64 const uint64_t CompositingReasonLayerForScrollCorner = UINT64_
C(1) << 38; |
65 const uint64_t CompositingReasonLayerForScrollingContents = UINT64_
C(1) << 39; | 65 const uint64_t CompositingReasonLayerForScrollingContents = UINT64_
C(1) << 39; |
66 const uint64_t CompositingReasonLayerForScrollingContainer = UINT64_
C(1) << 40; | 66 const uint64_t CompositingReasonLayerForScrollingContainer = UINT64_
C(1) << 40; |
67 const uint64_t CompositingReasonLayerForSquashingContents = UINT64_
C(1) << 41; | 67 const uint64_t CompositingReasonLayerForSquashingContents = UINT64_
C(1) << 41; |
68 const uint64_t CompositingReasonLayerForSquashingContainer = UINT64_
C(1) << 42; | 68 const uint64_t CompositingReasonLayerForSquashingContainer = UINT64_
C(1) << 42; |
69 const uint64_t CompositingReasonLayerForForeground = UINT64_
C(1) << 43; | 69 const uint64_t CompositingReasonLayerForForeground = UINT64_
C(1) << 43; |
70 const uint64_t CompositingReasonLayerForBackground = UINT64_
C(1) << 44; | 70 const uint64_t CompositingReasonLayerForBackground = UINT64_
C(1) << 44; |
71 const uint64_t CompositingReasonLayerForMask = UINT64_
C(1) << 45; | 71 const uint64_t CompositingReasonLayerForMask = UINT64_
C(1) << 45; |
72 const uint64_t CompositingReasonLayerForClippingMask = UINT64_
C(1) << 46; | 72 const uint64_t CompositingReasonLayerForClippingMask = UINT64_
C(1) << 46; |
| 73 const uint64_t CompositingReasonLayerForScrollingBlockSelection = UINT64_
C(1) << 47; |
73 | 74 |
74 // Various combinations of compositing reasons are defined here also, for more i
ntutive and faster bitwise logic. | 75 // Various combinations of compositing reasons are defined here also, for more i
ntutive and faster bitwise logic. |
75 const uint64_t CompositingReasonComboAllDirectReasons = | 76 const uint64_t CompositingReasonComboAllDirectReasons = |
76 CompositingReason3DTransform | 77 CompositingReason3DTransform |
77 | CompositingReasonVideo | 78 | CompositingReasonVideo |
78 | CompositingReasonCanvas | 79 | CompositingReasonCanvas |
79 | CompositingReasonPlugin | 80 | CompositingReasonPlugin |
80 | CompositingReasonIFrame | 81 | CompositingReasonIFrame |
81 | CompositingReasonBackfaceVisibilityHidden | 82 | CompositingReasonBackfaceVisibilityHidden |
82 | CompositingReasonActiveAnimation | 83 | CompositingReasonActiveAnimation |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 "layerForForeground", | 272 "layerForForeground", |
272 "Secondary layer, to contain any normal flow and positive z-index conten
ts on top of a negative z-index layer" }, | 273 "Secondary layer, to contain any normal flow and positive z-index conten
ts on top of a negative z-index layer" }, |
273 { CompositingReasonLayerForBackground, | 274 { CompositingReasonLayerForBackground, |
274 "layerForBackground", | 275 "layerForBackground", |
275 "Secondary layer, to contain acceleratable background content" }, | 276 "Secondary layer, to contain acceleratable background content" }, |
276 { CompositingReasonLayerForMask, | 277 { CompositingReasonLayerForMask, |
277 "layerForMask", | 278 "layerForMask", |
278 "Secondary layer, to contain the mask contents" }, | 279 "Secondary layer, to contain the mask contents" }, |
279 { CompositingReasonLayerForClippingMask, | 280 { CompositingReasonLayerForClippingMask, |
280 "layerForClippingMask", | 281 "layerForClippingMask", |
281 "Secondary layer, for clipping mask" } | 282 "Secondary layer, for clipping mask" }, |
| 283 { CompositingReasonLayerForScrollingBlockSelection, |
| 284 "layerForScrollingBlockSelection", |
| 285 "Secondary layer, to house block selection gaps for composited scrolling
with no scrolling contents" }, |
282 }; | 286 }; |
283 | 287 |
284 } // namespace WebCore | 288 } // namespace WebCore |
285 | 289 |
286 #endif // CompositingReasons_h | 290 #endif // CompositingReasons_h |
OLD | NEW |