OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include "cc/layer_animation_controller.h" | 5 #include "cc/layer_animation_controller.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "cc/animation.h" | 9 #include "cc/animation.h" |
10 #include "cc/animation_registrar.h" | 10 #include "cc/animation_registrar.h" |
| 11 #include "cc/base/scoped_ptr_algorithm.h" |
11 #include "cc/keyframed_animation_curve.h" | 12 #include "cc/keyframed_animation_curve.h" |
12 #include "cc/layer_animation_value_observer.h" | 13 #include "cc/layer_animation_value_observer.h" |
13 #include "cc/scoped_ptr_algorithm.h" | |
14 #include "ui/gfx/transform.h" | 14 #include "ui/gfx/transform.h" |
15 | 15 |
16 namespace cc { | 16 namespace cc { |
17 | 17 |
18 LayerAnimationController::LayerAnimationController(int id) | 18 LayerAnimationController::LayerAnimationController(int id) |
19 : force_sync_(false), | 19 : force_sync_(false), |
20 id_(id), | 20 id_(id), |
21 registrar_(0), | 21 registrar_(0), |
22 is_active_(false), | 22 is_active_(false), |
23 last_tick_time_(0) {} | 23 last_tick_time_(0) {} |
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
620 ObserverListBase<LayerAnimationValueObserver>::Iterator it(observers_); | 620 ObserverListBase<LayerAnimationValueObserver>::Iterator it(observers_); |
621 LayerAnimationValueObserver* obs; | 621 LayerAnimationValueObserver* obs; |
622 while ((obs = it.GetNext()) != NULL) | 622 while ((obs = it.GetNext()) != NULL) |
623 if (obs->IsActive()) | 623 if (obs->IsActive()) |
624 return true; | 624 return true; |
625 } | 625 } |
626 return false; | 626 return false; |
627 } | 627 } |
628 | 628 |
629 } // namespace cc | 629 } // namespace cc |
OLD | NEW |