| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_LAYER_ANIMATOR_COLLECTION_H_ | 5 #ifndef UI_COMPOSITOR_LAYER_ANIMATOR_COLLECTION_H_ |
| 6 #define UI_COMPOSITOR_LAYER_ANIMATOR_COLLECTION_H_ | 6 #define UI_COMPOSITOR_LAYER_ANIMATOR_COLLECTION_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 void StartAnimator(scoped_refptr<LayerAnimator> animator); | 29 void StartAnimator(scoped_refptr<LayerAnimator> animator); |
| 30 void StopAnimator(scoped_refptr<LayerAnimator> animator); | 30 void StopAnimator(scoped_refptr<LayerAnimator> animator); |
| 31 | 31 |
| 32 bool HasActiveAnimators() const; | 32 bool HasActiveAnimators() const; |
| 33 | 33 |
| 34 base::TimeTicks last_tick_time() const { return last_tick_time_; } | 34 base::TimeTicks last_tick_time() const { return last_tick_time_; } |
| 35 | 35 |
| 36 // CompositorAnimationObserver: | 36 // CompositorAnimationObserver: |
| 37 void OnAnimationStep(base::TimeTicks timestamp) override; | 37 void OnAnimationStep(base::TimeTicks timestamp) override; |
| 38 void OnCompositingShuttingDown(Compositor* compositor) override; |
| 38 | 39 |
| 39 private: | 40 private: |
| 40 Compositor* compositor_; | 41 Compositor* compositor_; |
| 41 base::TimeTicks last_tick_time_; | 42 base::TimeTicks last_tick_time_; |
| 42 std::set<scoped_refptr<LayerAnimator> > animators_; | 43 std::set<scoped_refptr<LayerAnimator> > animators_; |
| 43 | 44 |
| 44 DISALLOW_COPY_AND_ASSIGN(LayerAnimatorCollection); | 45 DISALLOW_COPY_AND_ASSIGN(LayerAnimatorCollection); |
| 45 }; | 46 }; |
| 46 | 47 |
| 47 } // namespace ui | 48 } // namespace ui |
| 48 | 49 |
| 49 #endif // UI_COMPOSITOR_LAYER_ANIMATOR_COLLECTION_H_ | 50 #endif // UI_COMPOSITOR_LAYER_ANIMATOR_COLLECTION_H_ |
| OLD | NEW |