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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
54 const uint64_t CompositingReasonLayerForBackground = UINT64_ C(1) << 30; | 54 const uint64_t CompositingReasonLayerForBackground = UINT64_ C(1) << 30; |
55 const uint64_t CompositingReasonLayerForMask = UINT64_ C(1) << 31; | 55 const uint64_t CompositingReasonLayerForMask = UINT64_ C(1) << 31; |
56 | 56 |
57 // FIXME: the following compositing reasons need to be re-organized to fit with categories | 57 // FIXME: the following compositing reasons need to be re-organized to fit with categories |
58 // used in all the other reasons above. | 58 // used in all the other reasons above. |
59 const uint64_t CompositingReasonOverflowScrollingParent = UINT64_ C(1) << 32; | 59 const uint64_t CompositingReasonOverflowScrollingParent = UINT64_ C(1) << 32; |
60 const uint64_t CompositingReasonOutOfFlowClipping = UINT64_ C(1) << 33; | 60 const uint64_t CompositingReasonOutOfFlowClipping = UINT64_ C(1) << 33; |
61 | 61 |
62 const uint64_t CompositingReasonLayerForVideoOverlay = UINT64_ C(1) << 34; | 62 const uint64_t CompositingReasonLayerForVideoOverlay = UINT64_ C(1) << 34; |
63 const uint64_t CompositingReasonIsolateCompositedDescendants = UINT64_ C(1) << 35; | 63 const uint64_t CompositingReasonIsolateCompositedDescendants = UINT64_ C(1) << 35; |
64 const uint64_t CompositingReasonOverlapsWithoutSquashingTarget = UINT64_ C(1) << 36; | 64 const uint64_t CompositingReasonOverlapsWithoutSquashingTarget = UINT64_ C(1) << 36; |
shawnsingh
2014/02/10 20:28:53
I think we should rename this one too. --> Compos
| |
65 | 65 |
66 // Various combinations of compositing reasons are defined here also, for more i ntutive and faster bitwise logic. | 66 // Various combinations of compositing reasons are defined here also, for more i ntutive and faster bitwise logic. |
67 const uint64_t CompositingReasonComboAllDirectReasons = | 67 const uint64_t CompositingReasonComboAllDirectReasons = |
68 CompositingReason3DTransform | 68 CompositingReason3DTransform |
69 | CompositingReasonVideo | 69 | CompositingReasonVideo |
70 | CompositingReasonCanvas | 70 | CompositingReasonCanvas |
71 | CompositingReasonPlugin | 71 | CompositingReasonPlugin |
72 | CompositingReasonIFrame | 72 | CompositingReasonIFrame |
73 | CompositingReasonBackfaceVisibilityHidden | 73 | CompositingReasonBackfaceVisibilityHidden |
74 | CompositingReasonAnimation | 74 | CompositingReasonAnimation |
(...skipping 12 matching lines...) Expand all Loading... | |
87 | CompositingReasonTransformWithCompositedDescendants | 87 | CompositingReasonTransformWithCompositedDescendants |
88 | CompositingReasonOpacityWithCompositedDescendants | 88 | CompositingReasonOpacityWithCompositedDescendants |
89 | CompositingReasonMaskWithCompositedDescendants | 89 | CompositingReasonMaskWithCompositedDescendants |
90 | CompositingReasonFilterWithCompositedDescendants | 90 | CompositingReasonFilterWithCompositedDescendants |
91 | CompositingReasonBlendingWithCompositedDescendants | 91 | CompositingReasonBlendingWithCompositedDescendants |
92 | CompositingReasonIsolateCompositedDescendants | 92 | CompositingReasonIsolateCompositedDescendants |
93 | CompositingReasonPreserve3D; // preserve-3d has to create backing store to ensure that 3d-transformed elements intersect. | 93 | CompositingReasonPreserve3D; // preserve-3d has to create backing store to ensure that 3d-transformed elements intersect. |
94 | 94 |
95 const uint64_t CompositingReasonComboSquashableReasons = | 95 const uint64_t CompositingReasonComboSquashableReasons = |
96 CompositingReasonOverlap | 96 CompositingReasonOverlap |
97 | CompositingReasonAssumedOverlap; | 97 | CompositingReasonAssumedOverlap |
98 | CompositingReasonOverflowScrollingParent; | |
98 | 99 |
99 typedef uint64_t CompositingReasons; | 100 typedef uint64_t CompositingReasons; |
100 | 101 |
101 } // namespace WebCore | 102 } // namespace WebCore |
102 | 103 |
103 #endif // CompositingReasons_h | 104 #endif // CompositingReasons_h |
OLD | NEW |