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/animation/layer_animation_controller.h" | 5 #include "cc/animation/layer_animation_controller.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "cc/animation/animation.h" | 10 #include "cc/animation/animation.h" |
11 #include "cc/animation/animation_delegate.h" | 11 #include "cc/animation/animation_delegate.h" |
12 #include "cc/animation/animation_registrar.h" | 12 #include "cc/animation/animation_registrar.h" |
13 #include "cc/animation/keyframed_animation_curve.h" | 13 #include "cc/animation/keyframed_animation_curve.h" |
14 #include "cc/animation/layer_animation_value_observer.h" | 14 #include "cc/animation/layer_animation_value_observer.h" |
15 #include "cc/animation/layer_animation_value_provider.h" | 15 #include "cc/animation/layer_animation_value_provider.h" |
16 #include "cc/animation/scroll_offset_animation_curve.h" | 16 #include "cc/animation/scroll_offset_animation_curve.h" |
17 #include "cc/base/scoped_ptr_algorithm.h" | 17 #include "cc/base/scoped_ptr_algorithm.h" |
18 #include "cc/output/filter_operations.h" | 18 #include "cc/output/filter_operations.h" |
19 #include "ui/gfx/box_f.h" | 19 #include "ui/gfx/geometry/box_f.h" |
20 #include "ui/gfx/transform.h" | 20 #include "ui/gfx/transform.h" |
21 | 21 |
22 namespace cc { | 22 namespace cc { |
23 | 23 |
24 LayerAnimationController::LayerAnimationController(int id) | 24 LayerAnimationController::LayerAnimationController(int id) |
25 : registrar_(0), | 25 : registrar_(0), |
26 id_(id), | 26 id_(id), |
27 is_active_(false), | 27 is_active_(false), |
28 value_provider_(nullptr), | 28 value_provider_(nullptr), |
29 layer_animation_delegate_(nullptr), | 29 layer_animation_delegate_(nullptr), |
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1029 value_observers_); | 1029 value_observers_); |
1030 LayerAnimationValueObserver* obs; | 1030 LayerAnimationValueObserver* obs; |
1031 while ((obs = it.GetNext()) != nullptr) | 1031 while ((obs = it.GetNext()) != nullptr) |
1032 if (obs->IsActive()) | 1032 if (obs->IsActive()) |
1033 return true; | 1033 return true; |
1034 } | 1034 } |
1035 return false; | 1035 return false; |
1036 } | 1036 } |
1037 | 1037 |
1038 } // namespace cc | 1038 } // namespace cc |
OLD | NEW |