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

Side by Side Diff: ui/compositor/compositor.h

Issue 2615643002: ui: Add debug flag for slowing down all UI animations. (Closed)
Patch Set: add missing histograms.xml entry Created 3 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 unified diff | Download patch
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | ui/compositor/compositor.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_COMPOSITOR_COMPOSITOR_H_ 5 #ifndef UI_COMPOSITOR_COMPOSITOR_H_
6 #define UI_COMPOSITOR_COMPOSITOR_H_ 6 #define UI_COMPOSITOR_COMPOSITOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 class GpuMemoryBufferManager; 58 class GpuMemoryBufferManager;
59 } 59 }
60 60
61 namespace ui { 61 namespace ui {
62 62
63 class Compositor; 63 class Compositor;
64 class CompositorVSyncManager; 64 class CompositorVSyncManager;
65 class LatencyInfo; 65 class LatencyInfo;
66 class Layer; 66 class Layer;
67 class Reflector; 67 class Reflector;
68 class ScopedAnimationDurationScaleMode;
68 69
69 #if defined(USE_AURA) 70 #if defined(USE_AURA)
70 class Window; 71 class Window;
71 #endif 72 #endif
72 73
73 const int kCompositorLockTimeoutMs = 67; 74 const int kCompositorLockTimeoutMs = 67;
74 75
75 class COMPOSITOR_EXPORT ContextFactoryObserver { 76 class COMPOSITOR_EXPORT ContextFactoryObserver {
76 public: 77 public:
77 virtual ~ContextFactoryObserver() {} 78 virtual ~ContextFactoryObserver() {}
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 430
430 // The device scale factor of the monitor that this compositor is compositing 431 // The device scale factor of the monitor that this compositor is compositing
431 // layers on. 432 // layers on.
432 float device_scale_factor_; 433 float device_scale_factor_;
433 434
434 bool locks_will_time_out_; 435 bool locks_will_time_out_;
435 CompositorLock* compositor_lock_; 436 CompositorLock* compositor_lock_;
436 437
437 LayerAnimatorCollection layer_animator_collection_; 438 LayerAnimatorCollection layer_animator_collection_;
438 scoped_refptr<cc::AnimationTimeline> animation_timeline_; 439 scoped_refptr<cc::AnimationTimeline> animation_timeline_;
440 std::unique_ptr<ScopedAnimationDurationScaleMode> slow_animations_;
439 441
440 gfx::ColorSpace color_space_; 442 gfx::ColorSpace color_space_;
441 443
442 base::WeakPtrFactory<Compositor> weak_ptr_factory_; 444 base::WeakPtrFactory<Compositor> weak_ptr_factory_;
443 445
444 DISALLOW_COPY_AND_ASSIGN(Compositor); 446 DISALLOW_COPY_AND_ASSIGN(Compositor);
445 }; 447 };
446 448
447 } // namespace ui 449 } // namespace ui
448 450
449 #endif // UI_COMPOSITOR_COMPOSITOR_H_ 451 #endif // UI_COMPOSITOR_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698