Chromium Code Reviews| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 | 89 |
| 90 // Composited elements with inline transforms trigger assumed overlap so that | 90 // Composited elements with inline transforms trigger assumed overlap so that |
| 91 // we can update their transforms quickly. | 91 // we can update their transforms quickly. |
| 92 const uint64_t CompositingReasonInlineTransform = UINT64_C(1) << 48; | 92 const uint64_t CompositingReasonInlineTransform = UINT64_C(1) << 48; |
| 93 | 93 |
| 94 const uint64_t CompositingReasonCompositorProxy = UINT64_C(1) << 49; | 94 const uint64_t CompositingReasonCompositorProxy = UINT64_C(1) << 49; |
| 95 | 95 |
| 96 // Composited layer painted on top of all other layers as decoration | |
| 97 const uint64_t CompositingReasonLayerForDecoration = UINT64_C(1) << 50; | |
|
flackr
2016/10/24 17:19:30
We don't need to add a compositing reason for this
yigu
2016/10/24 20:31:36
Will add a compositing reason as discussed.
| |
| 98 | |
| 96 // Various combinations of compositing reasons are defined here also, for more | 99 // Various combinations of compositing reasons are defined here also, for more |
| 97 // intutive and faster bitwise logic. | 100 // intutive and faster bitwise logic. |
| 98 const uint64_t CompositingReasonComboAllDirectReasons = | 101 const uint64_t CompositingReasonComboAllDirectReasons = |
| 99 CompositingReason3DTransform | CompositingReasonVideo | | 102 CompositingReason3DTransform | CompositingReasonVideo | |
| 100 CompositingReasonCanvas | CompositingReasonPlugin | | 103 CompositingReasonCanvas | CompositingReasonPlugin | |
| 101 CompositingReasonIFrame | CompositingReasonBackfaceVisibilityHidden | | 104 CompositingReasonIFrame | CompositingReasonBackfaceVisibilityHidden | |
| 102 CompositingReasonActiveAnimation | CompositingReasonTransitionProperty | | 105 CompositingReasonActiveAnimation | CompositingReasonTransitionProperty | |
| 103 CompositingReasonScrollDependentPosition | | 106 CompositingReasonScrollDependentPosition | |
| 104 CompositingReasonOverflowScrollingTouch | | 107 CompositingReasonOverflowScrollingTouch | |
| 105 CompositingReasonOverflowScrollingParent | | 108 CompositingReasonOverflowScrollingParent | |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 176 const char* description; | 179 const char* description; |
| 177 }; | 180 }; |
| 178 | 181 |
| 179 PLATFORM_EXPORT extern const CompositingReasonStringMap | 182 PLATFORM_EXPORT extern const CompositingReasonStringMap |
| 180 kCompositingReasonStringMap[]; | 183 kCompositingReasonStringMap[]; |
| 181 PLATFORM_EXPORT extern const size_t kNumberOfCompositingReasons; | 184 PLATFORM_EXPORT extern const size_t kNumberOfCompositingReasons; |
| 182 | 185 |
| 183 } // namespace blink | 186 } // namespace blink |
| 184 | 187 |
| 185 #endif // CompositingReasons_h | 188 #endif // CompositingReasons_h |
| OLD | NEW |