| 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/MathExtras.h" | 9 #include "wtf/MathExtras.h" |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // a layer if anything else in the subtree is composited. | 57 // a layer if anything else in the subtree is composited. |
| 58 const uint64_t CompositingReasonRoot = UINT6
4_C(1) << 39; | 58 const uint64_t CompositingReasonRoot = UINT6
4_C(1) << 39; |
| 59 | 59 |
| 60 // CompositedLayerMapping internal hierarchy reasons | 60 // CompositedLayerMapping internal hierarchy reasons |
| 61 const uint64_t CompositingReasonLayerForAncestorClip = UINT6
4_C(1) << 40; | 61 const uint64_t CompositingReasonLayerForAncestorClip = UINT6
4_C(1) << 40; |
| 62 const uint64_t CompositingReasonLayerForDescendantClip = UINT6
4_C(1) << 41; | 62 const uint64_t CompositingReasonLayerForDescendantClip = UINT6
4_C(1) << 41; |
| 63 const uint64_t CompositingReasonLayerForPerspective = UINT6
4_C(1) << 42; | 63 const uint64_t CompositingReasonLayerForPerspective = UINT6
4_C(1) << 42; |
| 64 const uint64_t CompositingReasonLayerForHorizontalScrollbar = UINT6
4_C(1) << 43; | 64 const uint64_t CompositingReasonLayerForHorizontalScrollbar = UINT6
4_C(1) << 43; |
| 65 const uint64_t CompositingReasonLayerForVerticalScrollbar = UINT6
4_C(1) << 44; | 65 const uint64_t CompositingReasonLayerForVerticalScrollbar = UINT6
4_C(1) << 44; |
| 66 const uint64_t CompositingReasonLayerForOverflowControlsHost = UINT6
4_C(1) << 45; | 66 const uint64_t CompositingReasonLayerForOverflowControlsHost = UINT6
4_C(1) << 45; |
| 67 const uint64_t CompositingReasonLayerForScrollCorner = UINT6
4_C(1) << 46; | 67 // FIXME(sky): 46 is unused. |
| 68 const uint64_t CompositingReasonLayerForScrollingContents = UINT6
4_C(1) << 47; | 68 const uint64_t CompositingReasonLayerForScrollingContents = UINT6
4_C(1) << 47; |
| 69 const uint64_t CompositingReasonLayerForScrollingContainer = UINT6
4_C(1) << 48; | 69 const uint64_t CompositingReasonLayerForScrollingContainer = UINT6
4_C(1) << 48; |
| 70 const uint64_t CompositingReasonLayerForSquashingContents = UINT6
4_C(1) << 49; | 70 const uint64_t CompositingReasonLayerForSquashingContents = UINT6
4_C(1) << 49; |
| 71 const uint64_t CompositingReasonLayerForSquashingContainer = UINT6
4_C(1) << 50; | 71 const uint64_t CompositingReasonLayerForSquashingContainer = UINT6
4_C(1) << 50; |
| 72 const uint64_t CompositingReasonLayerForForeground = UINT6
4_C(1) << 51; | 72 const uint64_t CompositingReasonLayerForForeground = UINT6
4_C(1) << 51; |
| 73 const uint64_t CompositingReasonLayerForBackground = UINT6
4_C(1) << 52; | 73 const uint64_t CompositingReasonLayerForBackground = UINT6
4_C(1) << 52; |
| 74 const uint64_t CompositingReasonLayerForMask = UINT6
4_C(1) << 53; | 74 const uint64_t CompositingReasonLayerForMask = UINT6
4_C(1) << 53; |
| 75 const uint64_t CompositingReasonLayerForClippingMask = UINT6
4_C(1) << 54; | 75 const uint64_t CompositingReasonLayerForClippingMask = UINT6
4_C(1) << 54; |
| 76 const uint64_t CompositingReasonLayerForScrollingBlockSelection = UINT6
4_C(1) << 55; | 76 const uint64_t CompositingReasonLayerForScrollingBlockSelection = UINT6
4_C(1) << 55; |
| 77 | 77 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 const char* shortName; | 164 const char* shortName; |
| 165 const char* description; | 165 const char* description; |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 PLATFORM_EXPORT extern const CompositingReasonStringMap kCompositingReasonString
Map[]; | 168 PLATFORM_EXPORT extern const CompositingReasonStringMap kCompositingReasonString
Map[]; |
| 169 PLATFORM_EXPORT extern size_t kNumberOfCompositingReasons; | 169 PLATFORM_EXPORT extern size_t kNumberOfCompositingReasons; |
| 170 | 170 |
| 171 } // namespace blink | 171 } // namespace blink |
| 172 | 172 |
| 173 #endif // CompositingReasons_h | 173 #endif // CompositingReasons_h |
| OLD | NEW |