| 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 "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "wtf/Allocator.h" | 9 #include "wtf/Allocator.h" |
| 10 #include "wtf/text/WTFString.h" | 10 #include "wtf/text/WTFString.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 << 37; | 78 << 37; |
| 79 const uint64_t CompositingReasonLayerForScrollCorner = UINT64_C(1) << 38; | 79 const uint64_t CompositingReasonLayerForScrollCorner = UINT64_C(1) << 38; |
| 80 const uint64_t CompositingReasonLayerForScrollingContents = UINT64_C(1) << 39; | 80 const uint64_t CompositingReasonLayerForScrollingContents = UINT64_C(1) << 39; |
| 81 const uint64_t CompositingReasonLayerForScrollingContainer = UINT64_C(1) << 40; | 81 const uint64_t CompositingReasonLayerForScrollingContainer = UINT64_C(1) << 40; |
| 82 const uint64_t CompositingReasonLayerForSquashingContents = UINT64_C(1) << 41; | 82 const uint64_t CompositingReasonLayerForSquashingContents = UINT64_C(1) << 41; |
| 83 const uint64_t CompositingReasonLayerForSquashingContainer = UINT64_C(1) << 42; | 83 const uint64_t CompositingReasonLayerForSquashingContainer = UINT64_C(1) << 42; |
| 84 const uint64_t CompositingReasonLayerForForeground = UINT64_C(1) << 43; | 84 const uint64_t CompositingReasonLayerForForeground = UINT64_C(1) << 43; |
| 85 const uint64_t CompositingReasonLayerForBackground = UINT64_C(1) << 44; | 85 const uint64_t CompositingReasonLayerForBackground = UINT64_C(1) << 44; |
| 86 const uint64_t CompositingReasonLayerForMask = UINT64_C(1) << 45; | 86 const uint64_t CompositingReasonLayerForMask = UINT64_C(1) << 45; |
| 87 const uint64_t CompositingReasonLayerForClippingMask = UINT64_C(1) << 46; | 87 const uint64_t CompositingReasonLayerForClippingMask = UINT64_C(1) << 46; |
| 88 const uint64_t CompositingReasonLayerForAncestorClippingMask = UINT64_C(1) |
| 89 << 47; |
| 88 const uint64_t CompositingReasonLayerForScrollingBlockSelection = UINT64_C(1) | 90 const uint64_t CompositingReasonLayerForScrollingBlockSelection = UINT64_C(1) |
| 89 << 47; | 91 << 48; |
| 90 // Composited layer painted on top of all other layers as decoration | 92 // Composited layer painted on top of all other layers as decoration |
| 91 const uint64_t CompositingReasonLayerForDecoration = UINT64_C(1) << 48; | 93 const uint64_t CompositingReasonLayerForDecoration = UINT64_C(1) << 49; |
| 92 | 94 |
| 93 // Composited elements with inline transforms trigger assumed overlap so that | 95 // Composited elements with inline transforms trigger assumed overlap so that |
| 94 // we can update their transforms quickly. | 96 // we can update their transforms quickly. |
| 95 const uint64_t CompositingReasonInlineTransform = UINT64_C(1) << 49; | 97 const uint64_t CompositingReasonInlineTransform = UINT64_C(1) << 50; |
| 96 | 98 |
| 97 const uint64_t CompositingReasonCompositorProxy = UINT64_C(1) << 50; | 99 const uint64_t CompositingReasonCompositorProxy = UINT64_C(1) << 51; |
| 98 | 100 |
| 99 // Various combinations of compositing reasons are defined here also, for more | 101 // Various combinations of compositing reasons are defined here also, for more |
| 100 // intutive and faster bitwise logic. | 102 // intutive and faster bitwise logic. |
| 101 const uint64_t CompositingReasonComboAllDirectReasons = | 103 const uint64_t CompositingReasonComboAllDirectReasons = |
| 102 CompositingReason3DTransform | CompositingReasonVideo | | 104 CompositingReason3DTransform | CompositingReasonVideo | |
| 103 CompositingReasonCanvas | CompositingReasonPlugin | | 105 CompositingReasonCanvas | CompositingReasonPlugin | |
| 104 CompositingReasonIFrame | CompositingReasonBackfaceVisibilityHidden | | 106 CompositingReasonIFrame | CompositingReasonBackfaceVisibilityHidden | |
| 105 CompositingReasonActiveAnimation | CompositingReasonTransitionProperty | | 107 CompositingReasonActiveAnimation | CompositingReasonTransitionProperty | |
| 106 CompositingReasonScrollDependentPosition | | 108 CompositingReasonScrollDependentPosition | |
| 107 CompositingReasonOverflowScrollingTouch | | 109 CompositingReasonOverflowScrollingTouch | |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 }; | 182 }; |
| 181 | 183 |
| 182 PLATFORM_EXPORT extern const CompositingReasonStringMap | 184 PLATFORM_EXPORT extern const CompositingReasonStringMap |
| 183 kCompositingReasonStringMap[]; | 185 kCompositingReasonStringMap[]; |
| 184 PLATFORM_EXPORT extern const size_t kNumberOfCompositingReasons; | 186 PLATFORM_EXPORT extern const size_t kNumberOfCompositingReasons; |
| 185 PLATFORM_EXPORT String compositingReasonsAsString(CompositingReasons); | 187 PLATFORM_EXPORT String compositingReasonsAsString(CompositingReasons); |
| 186 | 188 |
| 187 } // namespace blink | 189 } // namespace blink |
| 188 | 190 |
| 189 #endif // CompositingReasons_h | 191 #endif // CompositingReasons_h |
| OLD | NEW |