| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 const uint64_t CompositingReasonLayerForForeground = UINT64_
C(1) << 29; | 53 const uint64_t CompositingReasonLayerForForeground = UINT64_
C(1) << 29; |
| 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 | 64 |
| 64 const uint64_t CompositingReasonComboAllDirectReasons = | 65 const uint64_t CompositingReasonComboAllDirectReasons = |
| 65 CompositingReason3DTransform | 66 CompositingReason3DTransform |
| 66 | CompositingReasonVideo | 67 | CompositingReasonVideo |
| 67 | CompositingReasonCanvas | 68 | CompositingReasonCanvas |
| 68 | CompositingReasonPlugin | 69 | CompositingReasonPlugin |
| 69 | CompositingReasonIFrame | 70 | CompositingReasonIFrame |
| 70 | CompositingReasonBackfaceVisibilityHidden | 71 | CompositingReasonBackfaceVisibilityHidden |
| 71 | CompositingReasonAnimation | 72 | CompositingReasonAnimation |
| 72 | CompositingReasonFilters | 73 | CompositingReasonFilters |
| 73 | CompositingReasonPositionFixed | 74 | CompositingReasonPositionFixed |
| 74 | CompositingReasonPositionSticky | 75 | CompositingReasonPositionSticky |
| 75 | CompositingReasonOverflowScrollingTouch | 76 | CompositingReasonOverflowScrollingTouch |
| 76 | CompositingReasonOverflowScrollingParent | 77 | CompositingReasonOverflowScrollingParent |
| 77 | CompositingReasonOutOfFlowClipping; | 78 | CompositingReasonOutOfFlowClipping; |
| 78 | 79 |
| 79 const uint64_t CompositingReasonComboReasonsThatRequireOwnBacking = | 80 const uint64_t CompositingReasonComboReasonsThatRequireOwnBacking = |
| 80 CompositingReasonComboAllDirectReasons | 81 CompositingReasonComboAllDirectReasons |
| 81 | CompositingReasonOverlap | 82 | CompositingReasonOverlap |
| 82 | CompositingReasonAssumedOverlap | 83 | CompositingReasonAssumedOverlap |
| 83 | CompositingReasonNegativeZIndexChildren | 84 | CompositingReasonNegativeZIndexChildren |
| 84 | CompositingReasonTransformWithCompositedDescendants | 85 | CompositingReasonTransformWithCompositedDescendants |
| 85 | CompositingReasonOpacityWithCompositedDescendants | 86 | CompositingReasonOpacityWithCompositedDescendants |
| 86 | CompositingReasonMaskWithCompositedDescendants | 87 | CompositingReasonMaskWithCompositedDescendants |
| 87 | CompositingReasonFilterWithCompositedDescendants | 88 | CompositingReasonFilterWithCompositedDescendants |
| 88 | CompositingReasonBlendingWithCompositedDescendants | 89 | CompositingReasonBlendingWithCompositedDescendants |
| 90 | CompositingReasonIsolateCompositedDescendants |
| 89 | CompositingReasonPreserve3D; // preserve-3d has to create backing store to
ensure that 3d-transformed elements intersect. | 91 | CompositingReasonPreserve3D; // preserve-3d has to create backing store to
ensure that 3d-transformed elements intersect. |
| 90 | 92 |
| 91 // Note: if you add more reasons here, you will need to update WebCompositingRea
sons as well. | 93 // Note: if you add more reasons here, you will need to update WebCompositingRea
sons as well. |
| 92 typedef uint64_t CompositingReasons; | 94 typedef uint64_t CompositingReasons; |
| 93 | 95 |
| 94 | 96 |
| 95 } // namespace WebCore | 97 } // namespace WebCore |
| 96 | 98 |
| 97 #endif // CompositingReasons_h | 99 #endif // CompositingReasons_h |
| OLD | NEW |