| 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 16 matching lines...) Expand all Loading... |
| 27 const uint64_t CompositingReasonOverflowScrollingTouch = UINT64_
C(1) << 11; | 27 const uint64_t CompositingReasonOverflowScrollingTouch = UINT64_
C(1) << 11; |
| 28 const uint64_t CompositingReasonOverflowScrollingParent = UINT64_
C(1) << 12; | 28 const uint64_t CompositingReasonOverflowScrollingParent = UINT64_
C(1) << 12; |
| 29 const uint64_t CompositingReasonOutOfFlowClipping = UINT64_
C(1) << 13; | 29 const uint64_t CompositingReasonOutOfFlowClipping = UINT64_
C(1) << 13; |
| 30 const uint64_t CompositingReasonVideoOverlay = UINT64_
C(1) << 14; | 30 const uint64_t CompositingReasonVideoOverlay = UINT64_
C(1) << 14; |
| 31 const uint64_t CompositingReasonWillChange = UINT64_
C(1) << 15; | 31 const uint64_t CompositingReasonWillChange = UINT64_
C(1) << 15; |
| 32 | 32 |
| 33 // Overlap reasons that require knowing what's behind you in paint-order before
knowing the answer | 33 // Overlap reasons that require knowing what's behind you in paint-order before
knowing the answer |
| 34 const uint64_t CompositingReasonAssumedOverlap = UINT64_
C(1) << 16; | 34 const uint64_t CompositingReasonAssumedOverlap = UINT64_
C(1) << 16; |
| 35 const uint64_t CompositingReasonOverlap = UINT64_
C(1) << 17; | 35 const uint64_t CompositingReasonOverlap = UINT64_
C(1) << 17; |
| 36 const uint64_t CompositingReasonNegativeZIndexChildren = UINT64_
C(1) << 18; | 36 const uint64_t CompositingReasonNegativeZIndexChildren = UINT64_
C(1) << 18; |
| 37 const uint64_t CompositingReasonOverlapsWithoutSquashingTarget = UINT64_
C(1) << 19; | 37 const uint64_t CompositingReasonNoSquashingTargetFound = UINT64_
C(1) << 19; |
| 38 | 38 |
| 39 // Subtree reasons that require knowing what the status of your subtree is befor
e knowing the answer | 39 // Subtree reasons that require knowing what the status of your subtree is befor
e knowing the answer |
| 40 const uint64_t CompositingReasonTransformWithCompositedDescendants = UINT64_
C(1) << 20; | 40 const uint64_t CompositingReasonTransformWithCompositedDescendants = UINT64_
C(1) << 20; |
| 41 const uint64_t CompositingReasonOpacityWithCompositedDescendants = UINT64_
C(1) << 21; | 41 const uint64_t CompositingReasonOpacityWithCompositedDescendants = UINT64_
C(1) << 21; |
| 42 const uint64_t CompositingReasonMaskWithCompositedDescendants = UINT64_
C(1) << 22; | 42 const uint64_t CompositingReasonMaskWithCompositedDescendants = UINT64_
C(1) << 22; |
| 43 const uint64_t CompositingReasonReflectionWithCompositedDescendants = UINT64_
C(1) << 23; | 43 const uint64_t CompositingReasonReflectionWithCompositedDescendants = UINT64_
C(1) << 23; |
| 44 const uint64_t CompositingReasonFilterWithCompositedDescendants = UINT64_
C(1) << 24; | 44 const uint64_t CompositingReasonFilterWithCompositedDescendants = UINT64_
C(1) << 24; |
| 45 const uint64_t CompositingReasonBlendingWithCompositedDescendants = UINT64_
C(1) << 25; | 45 const uint64_t CompositingReasonBlendingWithCompositedDescendants = UINT64_
C(1) << 25; |
| 46 const uint64_t CompositingReasonClipsCompositingDescendants = UINT64_
C(1) << 26; | 46 const uint64_t CompositingReasonClipsCompositingDescendants = UINT64_
C(1) << 26; |
| 47 const uint64_t CompositingReasonPerspectiveWith3DDescendants = UINT64_
C(1) << 27; | 47 const uint64_t CompositingReasonPerspectiveWith3DDescendants = UINT64_
C(1) << 27; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | CompositingReasonOverflowScrollingParent | 86 | CompositingReasonOverflowScrollingParent |
| 87 | CompositingReasonOutOfFlowClipping | 87 | CompositingReasonOutOfFlowClipping |
| 88 | CompositingReasonVideoOverlay | 88 | CompositingReasonVideoOverlay |
| 89 | CompositingReasonWillChange; | 89 | CompositingReasonWillChange; |
| 90 | 90 |
| 91 const uint64_t CompositingReasonComboReasonsThatRequireOwnBacking = | 91 const uint64_t CompositingReasonComboReasonsThatRequireOwnBacking = |
| 92 CompositingReasonComboAllDirectReasons | 92 CompositingReasonComboAllDirectReasons |
| 93 | CompositingReasonOverlap | 93 | CompositingReasonOverlap |
| 94 | CompositingReasonAssumedOverlap | 94 | CompositingReasonAssumedOverlap |
| 95 | CompositingReasonNegativeZIndexChildren | 95 | CompositingReasonNegativeZIndexChildren |
| 96 | CompositingReasonOverlapsWithoutSquashingTarget | 96 | CompositingReasonNoSquashingTargetFound |
| 97 | CompositingReasonTransformWithCompositedDescendants | 97 | CompositingReasonTransformWithCompositedDescendants |
| 98 | CompositingReasonOpacityWithCompositedDescendants | 98 | CompositingReasonOpacityWithCompositedDescendants |
| 99 | CompositingReasonMaskWithCompositedDescendants | 99 | CompositingReasonMaskWithCompositedDescendants |
| 100 | CompositingReasonFilterWithCompositedDescendants | 100 | CompositingReasonFilterWithCompositedDescendants |
| 101 | CompositingReasonBlendingWithCompositedDescendants | 101 | CompositingReasonBlendingWithCompositedDescendants |
| 102 | CompositingReasonIsolateCompositedDescendants | 102 | CompositingReasonIsolateCompositedDescendants |
| 103 | CompositingReasonPreserve3DWith3DDescendants; // preserve-3d has to create
backing store to ensure that 3d-transformed elements intersect. | 103 | CompositingReasonPreserve3DWith3DDescendants; // preserve-3d has to create
backing store to ensure that 3d-transformed elements intersect. |
| 104 | 104 |
| 105 const uint64_t CompositingReasonComboSquashableReasons = | 105 const uint64_t CompositingReasonComboSquashableReasons = |
| 106 CompositingReasonOverlap | 106 CompositingReasonOverlap |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 "Has a will-change compositing hint" }, | 168 "Has a will-change compositing hint" }, |
| 169 { CompositingReasonAssumedOverlap, | 169 { CompositingReasonAssumedOverlap, |
| 170 "assumedOverlap", | 170 "assumedOverlap", |
| 171 "Might overlap other composited content" }, | 171 "Might overlap other composited content" }, |
| 172 { CompositingReasonOverlap, | 172 { CompositingReasonOverlap, |
| 173 "overlap", | 173 "overlap", |
| 174 "Overlaps other composited content" }, | 174 "Overlaps other composited content" }, |
| 175 { CompositingReasonNegativeZIndexChildren, | 175 { CompositingReasonNegativeZIndexChildren, |
| 176 "negativeZIndexChildren", | 176 "negativeZIndexChildren", |
| 177 "Parent with composited negative z-index content" }, | 177 "Parent with composited negative z-index content" }, |
| 178 { CompositingReasonOverlapsWithoutSquashingTarget, | 178 { CompositingReasonNoSquashingTargetFound, |
| 179 "overlapsWithoutSquashingTarget", | 179 "noSquashingTargetFound", |
| 180 "Cannot be squashed with content immediately behind it" }, | 180 "Cannot be squashed due to no compatible squashing owner found" }, |
| 181 { CompositingReasonTransformWithCompositedDescendants, | 181 { CompositingReasonTransformWithCompositedDescendants, |
| 182 "transformWithCompositedDescendants", | 182 "transformWithCompositedDescendants", |
| 183 "Has a transform that needs to be known by compositor because of composi
ted descendants" }, | 183 "Has a transform that needs to be known by compositor because of composi
ted descendants" }, |
| 184 { CompositingReasonOpacityWithCompositedDescendants, | 184 { CompositingReasonOpacityWithCompositedDescendants, |
| 185 "opacityWithCompositedDescendants", | 185 "opacityWithCompositedDescendants", |
| 186 "Has opacity that needs to be applied by compositor because of composite
d descendants" }, | 186 "Has opacity that needs to be applied by compositor because of composite
d descendants" }, |
| 187 { CompositingReasonMaskWithCompositedDescendants, | 187 { CompositingReasonMaskWithCompositedDescendants, |
| 188 "maskWithCompositedDescendants", | 188 "maskWithCompositedDescendants", |
| 189 "Has a mask that needs to be known by compositor because of composited d
escendants" }, | 189 "Has a mask that needs to be known by compositor because of composited d
escendants" }, |
| 190 { CompositingReasonReflectionWithCompositedDescendants, | 190 { CompositingReasonReflectionWithCompositedDescendants, |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 "layerForMask", | 254 "layerForMask", |
| 255 "Secondary layer, to contain the mask contents" }, | 255 "Secondary layer, to contain the mask contents" }, |
| 256 { CompositingReasonLayerForClippingMask, | 256 { CompositingReasonLayerForClippingMask, |
| 257 "layerForClippingMask", | 257 "layerForClippingMask", |
| 258 "Secondary layer, for clipping mask" } | 258 "Secondary layer, for clipping mask" } |
| 259 }; | 259 }; |
| 260 | 260 |
| 261 } // namespace WebCore | 261 } // namespace WebCore |
| 262 | 262 |
| 263 #endif // CompositingReasons_h | 263 #endif // CompositingReasons_h |
| OLD | NEW |