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

Unified Diff: cc/animation/target_property.cc

Issue 2357533002: CC Animation: Use std::bitset to update animation state. (Closed)
Patch Set: Clean it up. Created 4 years, 3 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
Index: cc/animation/target_property.cc
diff --git a/cc/animation/target_property.cc b/cc/animation/target_property.cc
index 15144a7cf5f84e6ab22de16a30902749bb1621f0..f39d93d526fea6bfac77ed6e1dcafcfb05d99a26 100644
--- a/cc/animation/target_property.cc
+++ b/cc/animation/target_property.cc
@@ -10,6 +10,9 @@ namespace cc {
namespace {
+static_assert(TargetProperty::FIRST_TARGET_PROPERTY == 0,
+ "TargetProperty must be 0-based enum");
+
// This should match the TargetProperty enum.
static const char* const s_targetPropertyNames[] = {
"TRANSFORM", "OPACITY", "FILTER", "SCROLL_OFFSET", "BACKGROUND_COLOR"};

Powered by Google App Engine
This is Rietveld 408576698