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 <stdint.h> |
8 #include "platform/PlatformExport.h" | 9 #include "platform/PlatformExport.h" |
9 #include "wtf/Allocator.h" | 10 #include "wtf/Allocator.h" |
10 #include "wtf/text/WTFString.h" | 11 #include "wtf/text/WTFString.h" |
11 #include <stdint.h> | |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 const uint64_t CompositingReasonNone = 0; | 15 const uint64_t CompositingReasonNone = 0; |
16 const uint64_t CompositingReasonAll = ~static_cast<uint64_t>(0); | 16 const uint64_t CompositingReasonAll = ~static_cast<uint64_t>(0); |
17 | 17 |
18 // Intrinsic reasons that can be known right away by the layer | 18 // Intrinsic reasons that can be known right away by the layer |
19 const uint64_t CompositingReason3DTransform = UINT64_C(1) << 0; | 19 const uint64_t CompositingReason3DTransform = UINT64_C(1) << 0; |
20 const uint64_t CompositingReasonVideo = UINT64_C(1) << 1; | 20 const uint64_t CompositingReasonVideo = UINT64_C(1) << 1; |
21 const uint64_t CompositingReasonCanvas = UINT64_C(1) << 2; | 21 const uint64_t CompositingReasonCanvas = UINT64_C(1) << 2; |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 }; | 182 }; |
183 | 183 |
184 PLATFORM_EXPORT extern const CompositingReasonStringMap | 184 PLATFORM_EXPORT extern const CompositingReasonStringMap |
185 kCompositingReasonStringMap[]; | 185 kCompositingReasonStringMap[]; |
186 PLATFORM_EXPORT extern const size_t kNumberOfCompositingReasons; | 186 PLATFORM_EXPORT extern const size_t kNumberOfCompositingReasons; |
187 PLATFORM_EXPORT String compositingReasonsAsString(CompositingReasons); | 187 PLATFORM_EXPORT String compositingReasonsAsString(CompositingReasons); |
188 | 188 |
189 } // namespace blink | 189 } // namespace blink |
190 | 190 |
191 #endif // CompositingReasons_h | 191 #endif // CompositingReasons_h |
OLD | NEW |