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

Unified Diff: ui/compositor/scoped_layer_animation_settings.cc

Issue 134453004: Use a bitfield to store animatable properties. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix another win build error (signed/unsigned comp). Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/compositor/layer_animator_unittest.cc ('k') | ui/compositor/test/layer_animator_test_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/scoped_layer_animation_settings.cc
diff --git a/ui/compositor/scoped_layer_animation_settings.cc b/ui/compositor/scoped_layer_animation_settings.cc
index 84456ee5bc16c3268aae4bf593770c4b425eeddc..9ab0673f1af08d8fecc44ed36da2a35f1fd9ccb3 100644
--- a/ui/compositor/scoped_layer_animation_settings.cc
+++ b/ui/compositor/scoped_layer_animation_settings.cc
@@ -61,10 +61,10 @@ class InvertingObserver : public ImplicitAnimationObserver {
"Inverse supported only for single element sequences.";
LayerAnimationElement* element = sequence->FirstElement();
- LayerAnimationElement::AnimatableProperties transform_property;
- transform_property.insert(LayerAnimationElement::TRANSFORM);
- DCHECK(transform_property == element->properties())
- << "Only transform animations are currently invertible.";
+ DCHECK_EQ(static_cast<LayerAnimationElement::AnimatableProperties>(
+ LayerAnimationElement::TRANSFORM),
+ element->properties())
+ << "Only transform animations are currently invertible.";
scoped_ptr<LayerAnimationElement> to_return(
LayerAnimationElement::CreateInverseTransformElement(base, element));
« no previous file with comments | « ui/compositor/layer_animator_unittest.cc ('k') | ui/compositor/test/layer_animator_test_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698