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

Side by Side Diff: ash/rotator/screen_rotation_animator.h

Issue 2837773003: Flip the flag to enable smooth screen rotation by default. (Closed)
Patch Set: Add comments how the test will work. Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « ash/ash_switches.cc ('k') | ash/rotator/screen_rotation_animator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_ROTATOR_SCREEN_ROTATION_ANIMATOR_H_ 5 #ifndef ASH_ROTATOR_SCREEN_ROTATION_ANIMATOR_H_
6 #define ASH_ROTATOR_SCREEN_ROTATION_ANIMATOR_H_ 6 #define ASH_ROTATOR_SCREEN_ROTATION_ANIMATOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 std::unique_ptr<ui::AnimationMetricsReporter> metrics_reporter_; 170 std::unique_ptr<ui::AnimationMetricsReporter> metrics_reporter_;
171 // Only set in unittest to disable animation timers. 171 // Only set in unittest to disable animation timers.
172 bool disable_animation_timers_for_test_; 172 bool disable_animation_timers_for_test_;
173 base::ObserverList<ScreenRotationAnimatorObserver> 173 base::ObserverList<ScreenRotationAnimatorObserver>
174 screen_rotation_animator_observers_; 174 screen_rotation_animator_observers_;
175 std::unique_ptr<ui::LayerTreeOwner> old_layer_tree_owner_; 175 std::unique_ptr<ui::LayerTreeOwner> old_layer_tree_owner_;
176 std::unique_ptr<ui::LayerTreeOwner> new_layer_tree_owner_; 176 std::unique_ptr<ui::LayerTreeOwner> new_layer_tree_owner_;
177 std::unique_ptr<ui::LayerOwner> black_mask_layer_owner_; 177 std::unique_ptr<ui::LayerOwner> black_mask_layer_owner_;
178 std::unique_ptr<ScreenRotationRequest> last_pending_request_; 178 std::unique_ptr<ScreenRotationRequest> last_pending_request_;
179 bool has_switch_ash_enable_smooth_screen_rotation_; 179 bool has_switch_ash_disable_smooth_screen_rotation_;
180 aura::Window* root_window_; 180 aura::Window* root_window_;
181 ui::Layer* screen_rotation_container_layer_; 181 ui::Layer* screen_rotation_container_layer_;
182 base::WeakPtrFactory<ScreenRotationAnimator> weak_factory_; 182 base::WeakPtrFactory<ScreenRotationAnimator> weak_factory_;
183 183
184 DISALLOW_COPY_AND_ASSIGN(ScreenRotationAnimator); 184 DISALLOW_COPY_AND_ASSIGN(ScreenRotationAnimator);
185 }; 185 };
186 186
187 } // namespace ash 187 } // namespace ash
188 188
189 #endif // ASH_ROTATOR_SCREEN_ROTATION_ANIMATOR_H_ 189 #endif // ASH_ROTATOR_SCREEN_ROTATION_ANIMATOR_H_
OLDNEW
« no previous file with comments | « ash/ash_switches.cc ('k') | ash/rotator/screen_rotation_animator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698