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

Unified Diff: ui/app_list/views/pulsing_block_view.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 | « ash/wm/workspace_controller.cc ('k') | ui/compositor/layer_animation_element.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/pulsing_block_view.cc
diff --git a/ui/app_list/views/pulsing_block_view.cc b/ui/app_list/views/pulsing_block_view.cc
index aa2c2733a33595535b9d82b5f9bfe42d50719040..373ceefdce6d1ff5dcfb4d48eced901890699dec 100644
--- a/ui/app_list/views/pulsing_block_view.cc
+++ b/ui/app_list/views/pulsing_block_view.cc
@@ -50,18 +50,14 @@ void SchedulePulsingAnimation(ui::Layer* layer) {
base::TimeDelta::FromMilliseconds(kAnimationDurationInMs)));
}
- ui::LayerAnimationElement::AnimatableProperties opacity_properties;
- opacity_properties.insert(ui::LayerAnimationElement::OPACITY);
opacity_sequence->AddElement(
ui::LayerAnimationElement::CreatePauseElement(
- opacity_properties,
- base::TimeDelta::FromMilliseconds(kAnimationDurationInMs)));
+ ui::LayerAnimationElement::OPACITY,
+ base::TimeDelta::FromMilliseconds(kAnimationDurationInMs)));
- ui::LayerAnimationElement::AnimatableProperties transform_properties;
- transform_properties.insert(ui::LayerAnimationElement::TRANSFORM);
transform_sequence->AddElement(
ui::LayerAnimationElement::CreatePauseElement(
- transform_properties,
+ ui::LayerAnimationElement::TRANSFORM,
base::TimeDelta::FromMilliseconds(kAnimationDurationInMs)));
std::vector<ui::LayerAnimationSequence*> animations;
« no previous file with comments | « ash/wm/workspace_controller.cc ('k') | ui/compositor/layer_animation_element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698