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

Unified Diff: ash/rotator/screen_rotation.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/rotator/screen_rotation.h ('k') | ash/shelf/app_list_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/rotator/screen_rotation.cc
diff --git a/ash/rotator/screen_rotation.cc b/ash/rotator/screen_rotation.cc
index 9352d81ea342e0e47c7dd748a82e85595028422b..02b13a06ec982dc1c411186e5f4854ea784ee924 100644
--- a/ash/rotator/screen_rotation.cc
+++ b/ash/rotator/screen_rotation.cc
@@ -31,7 +31,7 @@ base::TimeDelta GetTransitionDuration(int degrees) {
} // namespace
ScreenRotation::ScreenRotation(int degrees, ui::Layer* layer)
- : ui::LayerAnimationElement(GetProperties(),
+ : ui::LayerAnimationElement(LayerAnimationElement::TRANSFORM,
GetTransitionDuration(degrees)),
degrees_(degrees) {
InitTransform(layer);
@@ -120,13 +120,4 @@ void ScreenRotation::OnGetTarget(TargetValue* target) const {
void ScreenRotation::OnAbort(ui::LayerAnimationDelegate* delegate) {
}
-// static
-const ui::LayerAnimationElement::AnimatableProperties&
-ScreenRotation::GetProperties() {
- static ui::LayerAnimationElement::AnimatableProperties properties;
- if (properties.empty())
- properties.insert(ui::LayerAnimationElement::TRANSFORM);
- return properties;
-}
-
} // namespace ash
« no previous file with comments | « ash/rotator/screen_rotation.h ('k') | ash/shelf/app_list_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698