| 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 <stdint.h> | 10 #include <stdint.h> |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 const uint64_t CompositingReasonLayerForScrollingContents = UINT64_C(1) << 39; | 79 const uint64_t CompositingReasonLayerForScrollingContents = UINT64_C(1) << 39; |
| 80 const uint64_t CompositingReasonLayerForScrollingContainer = UINT64_C(1) << 40; | 80 const uint64_t CompositingReasonLayerForScrollingContainer = UINT64_C(1) << 40; |
| 81 const uint64_t CompositingReasonLayerForSquashingContents = UINT64_C(1) << 41; | 81 const uint64_t CompositingReasonLayerForSquashingContents = UINT64_C(1) << 41; |
| 82 const uint64_t CompositingReasonLayerForSquashingContainer = UINT64_C(1) << 42; | 82 const uint64_t CompositingReasonLayerForSquashingContainer = UINT64_C(1) << 42; |
| 83 const uint64_t CompositingReasonLayerForForeground = UINT64_C(1) << 43; | 83 const uint64_t CompositingReasonLayerForForeground = UINT64_C(1) << 43; |
| 84 const uint64_t CompositingReasonLayerForBackground = UINT64_C(1) << 44; | 84 const uint64_t CompositingReasonLayerForBackground = UINT64_C(1) << 44; |
| 85 const uint64_t CompositingReasonLayerForMask = UINT64_C(1) << 45; | 85 const uint64_t CompositingReasonLayerForMask = UINT64_C(1) << 45; |
| 86 const uint64_t CompositingReasonLayerForClippingMask = UINT64_C(1) << 46; | 86 const uint64_t CompositingReasonLayerForClippingMask = UINT64_C(1) << 46; |
| 87 const uint64_t CompositingReasonLayerForScrollingBlockSelection = UINT64_C(1) | 87 const uint64_t CompositingReasonLayerForScrollingBlockSelection = UINT64_C(1) |
| 88 << 47; | 88 << 47; |
| 89 const uint64_t CompositingReasonLayerForAncestorClippingMask = UINT64_C(1) |
| 90 << 48; |
| 89 | 91 |
| 90 // Composited elements with inline transforms trigger assumed overlap so that | 92 // Composited elements with inline transforms trigger assumed overlap so that |
| 91 // we can update their transforms quickly. | 93 // we can update their transforms quickly. |
| 92 const uint64_t CompositingReasonInlineTransform = UINT64_C(1) << 48; | 94 const uint64_t CompositingReasonInlineTransform = UINT64_C(1) << 49; |
| 93 | 95 |
| 94 const uint64_t CompositingReasonCompositorProxy = UINT64_C(1) << 49; | 96 const uint64_t CompositingReasonCompositorProxy = UINT64_C(1) << 50; |
| 95 | 97 |
| 96 // Various combinations of compositing reasons are defined here also, for more | 98 // Various combinations of compositing reasons are defined here also, for more |
| 97 // intutive and faster bitwise logic. | 99 // intutive and faster bitwise logic. |
| 98 const uint64_t CompositingReasonComboAllDirectReasons = | 100 const uint64_t CompositingReasonComboAllDirectReasons = |
| 99 CompositingReason3DTransform | CompositingReasonVideo | | 101 CompositingReason3DTransform | CompositingReasonVideo | |
| 100 CompositingReasonCanvas | CompositingReasonPlugin | | 102 CompositingReasonCanvas | CompositingReasonPlugin | |
| 101 CompositingReasonIFrame | CompositingReasonBackfaceVisibilityHidden | | 103 CompositingReasonIFrame | CompositingReasonBackfaceVisibilityHidden | |
| 102 CompositingReasonActiveAnimation | CompositingReasonTransitionProperty | | 104 CompositingReasonActiveAnimation | CompositingReasonTransitionProperty | |
| 103 CompositingReasonScrollDependentPosition | | 105 CompositingReasonScrollDependentPosition | |
| 104 CompositingReasonOverflowScrollingTouch | | 106 CompositingReasonOverflowScrollingTouch | |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 const char* description; | 178 const char* description; |
| 177 }; | 179 }; |
| 178 | 180 |
| 179 PLATFORM_EXPORT extern const CompositingReasonStringMap | 181 PLATFORM_EXPORT extern const CompositingReasonStringMap |
| 180 kCompositingReasonStringMap[]; | 182 kCompositingReasonStringMap[]; |
| 181 PLATFORM_EXPORT extern const size_t kNumberOfCompositingReasons; | 183 PLATFORM_EXPORT extern const size_t kNumberOfCompositingReasons; |
| 182 | 184 |
| 183 } // namespace blink | 185 } // namespace blink |
| 184 | 186 |
| 185 #endif // CompositingReasons_h | 187 #endif // CompositingReasons_h |
| OLD | NEW |