| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CC_ANIMATION_MUTABLE_PROPERTIES_H_ | 5 #ifndef CC_ANIMATION_MUTABLE_PROPERTIES_H_ |
| 6 #define CC_ANIMATION_MUTABLE_PROPERTIES_H_ | 6 #define CC_ANIMATION_MUTABLE_PROPERTIES_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 namespace cc { | 10 namespace cc { |
| 11 | 11 |
| 12 struct MutableProperty { | 12 struct MutableProperty { |
| 13 enum : uint32_t { kNone = 0 }; | 13 enum : uint32_t { kNone = 0 }; |
| 14 enum : uint32_t { kOpacity = 1 << 0 }; | 14 enum : uint32_t { kOpacity = 1 << 0 }; |
| 15 enum : uint32_t { kScrollLeft = 1 << 1 }; | 15 enum : uint32_t { kScrollLeft = 1 << 1 }; |
| 16 enum : uint32_t { kScrollTop = 1 << 2 }; | 16 enum : uint32_t { kScrollTop = 1 << 2 }; |
| 17 enum : uint32_t { kTransform = 1 << 3 }; | 17 enum : uint32_t { kTransform = 1 << 3 }; |
| 18 enum : uint32_t { kTransformRelated = kTransform | kScrollLeft | kScrollTop }; |
| 18 | 19 |
| 19 enum : int { kNumProperties = 4 }; | 20 enum : int { kNumProperties = 4 }; |
| 20 }; | 21 }; |
| 21 | 22 |
| 22 } // namespace cc | 23 } // namespace cc |
| 23 | 24 |
| 24 #endif // CC_ANIMATION_MUTABLE_PROPERTIES_H_ | 25 #endif // CC_ANIMATION_MUTABLE_PROPERTIES_H_ |
| OLD | NEW |