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 | 8 |
9 #include "cc/animation/animation.h" | 9 #include "cc/animation/animation.h" |
10 #include "cc/animation/animation_delegate.h" | 10 #include "cc/animation/animation_delegate.h" |
11 #include "cc/animation/animation_registrar.h" | 11 #include "cc/animation/animation_registrar.h" |
12 #include "cc/animation/keyframed_animation_curve.h" | 12 #include "cc/animation/keyframed_animation_curve.h" |
13 #include "cc/animation/layer_animation_value_observer.h" | 13 #include "cc/animation/layer_animation_value_observer.h" |
14 #include "cc/animation/layer_animation_value_provider.h" | 14 #include "cc/animation/layer_animation_value_provider.h" |
15 #include "cc/animation/scroll_offset_animation_curve.h" | 15 #include "cc/animation/scroll_offset_animation_curve.h" |
16 #include "cc/base/scoped_ptr_algorithm.h" | 16 #include "cc/base/scoped_ptr_algorithm.h" |
17 #include "cc/output/filter_operations.h" | 17 #include "cc/output/filter_operations.h" |
18 #include "ui/gfx/box_f.h" | 18 #include "ui/gfx/geometry/box_f.h" |
19 #include "ui/gfx/transform.h" | 19 #include "ui/gfx/transform.h" |
20 | 20 |
21 namespace cc { | 21 namespace cc { |
22 | 22 |
23 LayerAnimationController::LayerAnimationController(int id) | 23 LayerAnimationController::LayerAnimationController(int id) |
24 : registrar_(0), | 24 : registrar_(0), |
25 id_(id), | 25 id_(id), |
26 is_active_(false), | 26 is_active_(false), |
27 value_provider_(NULL), | 27 value_provider_(NULL), |
28 layer_animation_delegate_(NULL), | 28 layer_animation_delegate_(NULL), |
(...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
971 value_observers_); | 971 value_observers_); |
972 LayerAnimationValueObserver* obs; | 972 LayerAnimationValueObserver* obs; |
973 while ((obs = it.GetNext()) != NULL) | 973 while ((obs = it.GetNext()) != NULL) |
974 if (obs->IsActive()) | 974 if (obs->IsActive()) |
975 return true; | 975 return true; |
976 } | 976 } |
977 return false; | 977 return false; |
978 } | 978 } |
979 | 979 |
980 } // namespace cc | 980 } // namespace cc |
OLD | NEW |