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 namespace cc { | 8 namespace cc { |
9 | 9 |
| 10 // TODO(vollick): we can remove this once we're building property trees in |
| 11 // blink. We're using this in two places in cc currently. 1) to populate the |
| 12 // LayerTreeImpl's element map, and 2) to figure out when we need to add |
| 13 // property tree nodes for proxied layers. We can address 1) simply by moving |
| 14 // the storage to blink, and 2) will naturally happen as property construction |
| 15 // moves to blink. |
10 enum MutableProperty { | 16 enum MutableProperty { |
11 kMutablePropertyNone = 0, | 17 kMutablePropertyNone = 0, |
12 kMutablePropertyOpacity = 1 << 0, | 18 kMutablePropertyOpacity = 1 << 0, |
13 kMutablePropertyScrollLeft = 1 << 1, | 19 kMutablePropertyScrollLeft = 1 << 1, |
14 kMutablePropertyScrollTop = 1 << 2, | 20 kMutablePropertyScrollTop = 1 << 2, |
15 kMutablePropertyTransform = 1 << 3, | 21 kMutablePropertyTransform = 1 << 3, |
| 22 kMutablePropertyTransformRelated = kMutablePropertyTransform | |
| 23 kMutablePropertyScrollLeft | |
| 24 kMutablePropertyScrollTop, |
16 }; | 25 }; |
17 | 26 |
18 } // namespace cc | 27 } // namespace cc |
19 | 28 |
20 #endif // CC_ANIMATION_MUTABLE_PROPERTIES_H_ | 29 #endif // CC_ANIMATION_MUTABLE_PROPERTIES_H_ |
OLD | NEW |