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

Unified Diff: cc/animation/target_property.h

Issue 2357533002: CC Animation: Use std::bitset to update animation state. (Closed)
Patch Set: Reparent. Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/animation/property_animation_state.cc ('k') | cc/animation/target_property.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/target_property.h
diff --git a/cc/animation/target_property.h b/cc/animation/target_property.h
index 4ba1e1daf7db0bf4c39d2874996f255bc3183655..632e826a00ca66a2bd81c14d7259c916850c50e3 100644
--- a/cc/animation/target_property.h
+++ b/cc/animation/target_property.h
@@ -5,6 +5,8 @@
#ifndef CC_ANIMATION_TARGET_PROPERTY_H_
#define CC_ANIMATION_TARGET_PROPERTY_H_
+#include <bitset>
+
namespace cc {
namespace TargetProperty {
@@ -24,6 +26,9 @@ const char* GetName(TargetProperty::Type property);
} // namespace TargetProperty
+// A set of target properties. TargetProperty must be 0-based enum.
+using TargetProperties = std::bitset<TargetProperty::LAST_TARGET_PROPERTY + 1>;
+
} // namespace cc
#endif // CC_ANIMATION_TARGET_PROPERTY_H_
« no previous file with comments | « cc/animation/property_animation_state.cc ('k') | cc/animation/target_property.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698