Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CompositorMutableProperties_h | |
| 6 #define CompositorMutableProperties_h | |
| 7 | |
| 8 namespace blink { | |
| 9 | |
| 10 // TODO(vollick): we should not need a parallel enum. This must be kept in sync | |
| 11 // with the cc::MutableProperty enum. Once we build property trees in blink, the | |
| 12 // compositor does not need to know about these mutable properties and the | |
| 13 // compositor-side enumeration can be removed. | |
| 14 enum CompositorMutableProperty { | |
|
esprehn
2016/01/21 20:05:25
Talk to Dana about how to remove this she removed
Ian Vollick
2016/01/21 20:08:37
Sounds good. I'll ask her.
danakj
2016/01/21 20:54:26
First, bitmask flags aren't enums (a set of things
| |
| 15 CompositorMutablePropertyNone = 0, | |
| 16 CompositorMutablePropertyOpacity = 1 << 0, | |
| 17 CompositorMutablePropertyScrollLeft = 1 << 1, | |
| 18 CompositorMutablePropertyScrollTop = 1 << 2, | |
| 19 CompositorMutablePropertyTransform = 1 << 3, | |
| 20 }; | |
| 21 | |
| 22 const int kNumCompositorMutableProperties = 4; | |
|
danakj
2016/01/21 20:54:26
Don't use storage for constants in header files. h
| |
| 23 | |
| 24 } // namespace blink | |
| 25 | |
| 26 #endif // CompositorMutableProperties_h | |
| OLD | NEW |