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

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

Issue 1806223002: CC Animation: Use bitset instead of unordered_set in LayerAnimationController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use operator[] Created 4 years, 9 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_animation_controller.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CC_ANIMATION_TARGET_PROPERTY_H_ 5 #ifndef CC_ANIMATION_TARGET_PROPERTY_H_
6 #define CC_ANIMATION_TARGET_PROPERTY_H_ 6 #define CC_ANIMATION_TARGET_PROPERTY_H_
7 7
8 namespace cc { 8 namespace cc {
9 9
10 namespace TargetProperty { 10 namespace TargetProperty {
11 11
12 enum Type { 12 enum Type {
13 TRANSFORM = 0, 13 TRANSFORM = 0,
14 OPACITY, 14 OPACITY,
15 FILTER, 15 FILTER,
16 SCROLL_OFFSET, 16 SCROLL_OFFSET,
17 BACKGROUND_COLOR, 17 BACKGROUND_COLOR,
18 // This sentinel must be last. 18 // These sentinels must be last
19 FIRST_TARGET_PROPERTY = TRANSFORM,
19 LAST_TARGET_PROPERTY = BACKGROUND_COLOR 20 LAST_TARGET_PROPERTY = BACKGROUND_COLOR
20 }; 21 };
21 22
22 const char* GetName(TargetProperty::Type property); 23 const char* GetName(TargetProperty::Type property);
23 24
24 } // namespace TargetProperty 25 } // namespace TargetProperty
25 26
26 } // namespace cc 27 } // namespace cc
27 28
28 #endif // CC_ANIMATION_TARGET_PROPERTY_H_ 29 #endif // CC_ANIMATION_TARGET_PROPERTY_H_
OLDNEW
« no previous file with comments | « cc/animation/layer_animation_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698