Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: cc/animation/mutable_properties.h

Issue 1547893003: WIP - compositor worker mega patch. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/animation/layer_tree_mutator.h ('k') | cc/blink/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « cc/animation/layer_tree_mutator.h ('k') | cc/blink/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698