| 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_registrar.h" | 10 #include "cc/animation/animation_registrar.h" |
| 11 #include "cc/animation/keyframed_animation_curve.h" | 11 #include "cc/animation/keyframed_animation_curve.h" |
| 12 #include "cc/animation/layer_animation_value_observer.h" | 12 #include "cc/animation/layer_animation_value_observer.h" |
| 13 #include "cc/base/scoped_ptr_algorithm.h" | 13 #include "cc/base/scoped_ptr_algorithm.h" |
| 14 #include "third_party/WebKit/Source/Platform/chromium/public/WebAnimationDelegat
e.h" | 14 #include "third_party/WebKit/public/platform/WebAnimationDelegate.h" |
| 15 #include "ui/gfx/transform.h" | 15 #include "ui/gfx/transform.h" |
| 16 | 16 |
| 17 namespace cc { | 17 namespace cc { |
| 18 | 18 |
| 19 LayerAnimationController::LayerAnimationController(int id) | 19 LayerAnimationController::LayerAnimationController(int id) |
| 20 : force_sync_(false), | 20 : force_sync_(false), |
| 21 registrar_(0), | 21 registrar_(0), |
| 22 id_(id), | 22 id_(id), |
| 23 is_active_(false), | 23 is_active_(false), |
| 24 last_tick_time_(0), | 24 last_tick_time_(0), |
| (...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 731 value_observers_); | 731 value_observers_); |
| 732 LayerAnimationValueObserver* obs; | 732 LayerAnimationValueObserver* obs; |
| 733 while ((obs = it.GetNext()) != NULL) | 733 while ((obs = it.GetNext()) != NULL) |
| 734 if (obs->IsActive()) | 734 if (obs->IsActive()) |
| 735 return true; | 735 return true; |
| 736 } | 736 } |
| 737 return false; | 737 return false; |
| 738 } | 738 } |
| 739 | 739 |
| 740 } // namespace cc | 740 } // namespace cc |
| OLD | NEW |