| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 SquashingDisallowedReasons_h | 5 #ifndef SquashingDisallowedReasons_h |
| 6 #define SquashingDisallowedReasons_h | 6 #define SquashingDisallowedReasons_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 11 matching lines...) Expand all Loading... |
| 22 const uint64_t SquashingDisallowedReasonWouldBreakPaintOrder
= UINT64_C(1) << 6; | 22 const uint64_t SquashingDisallowedReasonWouldBreakPaintOrder
= UINT64_C(1) << 6; |
| 23 const uint64_t SquashingDisallowedReasonSquashingVideoIsDisallowed
= UINT64_C(1) << 7; | 23 const uint64_t SquashingDisallowedReasonSquashingVideoIsDisallowed
= UINT64_C(1) << 7; |
| 24 const uint64_t SquashingDisallowedReasonSquashedLayerClipsCompositingDescendants
= UINT64_C(1) << 8; | 24 const uint64_t SquashingDisallowedReasonSquashedLayerClipsCompositingDescendants
= UINT64_C(1) << 8; |
| 25 const uint64_t SquashingDisallowedReasonSquashingLayoutPartIsDisallowed
= UINT64_C(1) << 9; | 25 const uint64_t SquashingDisallowedReasonSquashingLayoutPartIsDisallowed
= UINT64_C(1) << 9; |
| 26 const uint64_t SquashingDisallowedReasonSquashingReflectionIsDisallowed
= UINT64_C(1) << 10; | 26 const uint64_t SquashingDisallowedReasonSquashingReflectionIsDisallowed
= UINT64_C(1) << 10; |
| 27 const uint64_t SquashingDisallowedReasonSquashingBlendingIsDisallowed
= UINT64_C(1) << 11; | 27 const uint64_t SquashingDisallowedReasonSquashingBlendingIsDisallowed
= UINT64_C(1) << 11; |
| 28 const uint64_t SquashingDisallowedReasonNearestFixedPositionMismatch
= UINT64_C(1) << 12; | 28 const uint64_t SquashingDisallowedReasonNearestFixedPositionMismatch
= UINT64_C(1) << 12; |
| 29 const uint64_t SquashingDisallowedReasonScrollChildWithCompositedDescendants
= UINT64_C(1) << 13; | 29 const uint64_t SquashingDisallowedReasonScrollChildWithCompositedDescendants
= UINT64_C(1) << 13; |
| 30 const uint64_t SquashingDisallowedReasonSquashingLayerIsAnimating
= UINT64_C(1) << 14; | 30 const uint64_t SquashingDisallowedReasonSquashingLayerIsAnimating
= UINT64_C(1) << 14; |
| 31 const uint64_t SquashingDisallowedReasonRenderingContextMismatch
= UINT64_C(1) << 15; | 31 const uint64_t SquashingDisallowedReasonRenderingContextMismatch
= UINT64_C(1) << 15; |
| 32 const uint64_t SquashingDisallowedReasonNonTranslationTransform
= UINT64_C(1) << 16; |
| 32 | 33 |
| 33 typedef uint64_t SquashingDisallowedReasons; | 34 typedef uint64_t SquashingDisallowedReasons; |
| 34 | 35 |
| 35 struct SquashingDisallowedReasonStringMap { | 36 struct SquashingDisallowedReasonStringMap { |
| 36 STACK_ALLOCATED(); | 37 STACK_ALLOCATED(); |
| 37 SquashingDisallowedReasons reason; | 38 SquashingDisallowedReasons reason; |
| 38 const char* shortName; | 39 const char* shortName; |
| 39 const char* description; | 40 const char* description; |
| 40 }; | 41 }; |
| 41 | 42 |
| 42 PLATFORM_EXPORT extern const SquashingDisallowedReasonStringMap kSquashingDisall
owedReasonStringMap[]; | 43 PLATFORM_EXPORT extern const SquashingDisallowedReasonStringMap kSquashingDisall
owedReasonStringMap[]; |
| 43 PLATFORM_EXPORT extern const size_t kNumberOfSquashingDisallowedReasons; | 44 PLATFORM_EXPORT extern const size_t kNumberOfSquashingDisallowedReasons; |
| 44 | 45 |
| 45 } // namespace blink | 46 } // namespace blink |
| 46 | 47 |
| 47 #endif // SquashingDisallowedReasons_h | 48 #endif // SquashingDisallowedReasons_h |
| OLD | NEW |