| 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/MathExtras.h" | |
| 11 #include <stdint.h> | 10 #include <stdint.h> |
| 12 | 11 |
| 13 namespace blink { | 12 namespace blink { |
| 14 | 13 |
| 15 const uint64_t CompositingReasonNone = 0; | 14 const uint64_t CompositingReasonNone = 0; |
| 16 const uint64_t CompositingReasonAll = ~stat
ic_cast<uint64_t>(0); | 15 const uint64_t CompositingReasonAll = ~stat
ic_cast<uint64_t>(0); |
| 17 | 16 |
| 18 // Intrinsic reasons that can be known right away by the layer | 17 // Intrinsic reasons that can be known right away by the layer |
| 19 const uint64_t CompositingReason3DTransform = UINT6
4_C(1) << 0; | 18 const uint64_t CompositingReason3DTransform = UINT6
4_C(1) << 0; |
| 20 const uint64_t CompositingReasonVideo = UINT6
4_C(1) << 1; | 19 const uint64_t CompositingReasonVideo = UINT6
4_C(1) << 1; |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 const char* shortName; | 169 const char* shortName; |
| 171 const char* description; | 170 const char* description; |
| 172 }; | 171 }; |
| 173 | 172 |
| 174 PLATFORM_EXPORT extern const CompositingReasonStringMap kCompositingReasonString
Map[]; | 173 PLATFORM_EXPORT extern const CompositingReasonStringMap kCompositingReasonString
Map[]; |
| 175 PLATFORM_EXPORT extern const size_t kNumberOfCompositingReasons; | 174 PLATFORM_EXPORT extern const size_t kNumberOfCompositingReasons; |
| 176 | 175 |
| 177 } // namespace blink | 176 } // namespace blink |
| 178 | 177 |
| 179 #endif // CompositingReasons_h | 178 #endif // CompositingReasons_h |
| OLD | NEW |