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/animation.h" | 5 #include "cc/animation/animation.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 | 8 |
9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 TargetProperty target_property) | 60 TargetProperty target_property) |
61 : curve_(curve.Pass()), | 61 : curve_(curve.Pass()), |
62 id_(animation_id), | 62 id_(animation_id), |
63 group_(group_id), | 63 group_(group_id), |
64 target_property_(target_property), | 64 target_property_(target_property), |
65 run_state_(WaitingForTargetAvailability), | 65 run_state_(WaitingForTargetAvailability), |
66 iterations_(1), | 66 iterations_(1), |
67 iteration_start_(0), | 67 iteration_start_(0), |
68 direction_(Normal), | 68 direction_(Normal), |
69 playback_rate_(1), | 69 playback_rate_(1), |
70 fill_mode_(FillModeNone), | 70 fill_mode_(FillModeBoth), |
71 needs_synchronized_start_time_(false), | 71 needs_synchronized_start_time_(false), |
72 received_finished_event_(false), | 72 received_finished_event_(false), |
73 suspended_(false), | 73 suspended_(false), |
74 is_controlling_instance_(false), | 74 is_controlling_instance_(false), |
75 is_impl_only_(false), | 75 is_impl_only_(false), |
76 affects_active_observers_(true), | 76 affects_active_observers_(true), |
77 affects_pending_observers_(true) { | 77 affects_pending_observers_(true) { |
78 } | 78 } |
79 | 79 |
80 Animation::~Animation() { | 80 Animation::~Animation() { |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 // the main thread. | 275 // the main thread. |
276 if (run_state_ == Animation::Paused || | 276 if (run_state_ == Animation::Paused || |
277 other->run_state_ == Animation::Paused) { | 277 other->run_state_ == Animation::Paused) { |
278 other->run_state_ = run_state_; | 278 other->run_state_ = run_state_; |
279 other->pause_time_ = pause_time_; | 279 other->pause_time_ = pause_time_; |
280 other->total_paused_time_ = total_paused_time_; | 280 other->total_paused_time_ = total_paused_time_; |
281 } | 281 } |
282 } | 282 } |
283 | 283 |
284 } // namespace cc | 284 } // namespace cc |
OLD | NEW |