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" | |
10 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "base/trace_event/trace_event.h" |
11 #include "cc/animation/animation_curve.h" | 11 #include "cc/animation/animation_curve.h" |
12 #include "cc/base/time_util.h" | 12 #include "cc/base/time_util.h" |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
16 // This should match the RunState enum. | 16 // This should match the RunState enum. |
17 static const char* const s_runStateNames[] = { | 17 static const char* const s_runStateNames[] = { |
18 "WaitingForTargetAvailability", | 18 "WaitingForTargetAvailability", |
19 "WaitingForDeletion", | 19 "WaitingForDeletion", |
20 "Starting", | 20 "Starting", |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 // the main thread. | 282 // the main thread. |
283 if (run_state_ == Animation::Paused || | 283 if (run_state_ == Animation::Paused || |
284 other->run_state_ == Animation::Paused) { | 284 other->run_state_ == Animation::Paused) { |
285 other->run_state_ = run_state_; | 285 other->run_state_ = run_state_; |
286 other->pause_time_ = pause_time_; | 286 other->pause_time_ = pause_time_; |
287 other->total_paused_time_ = total_paused_time_; | 287 other->total_paused_time_ = total_paused_time_; |
288 } | 288 } |
289 } | 289 } |
290 | 290 |
291 } // namespace cc | 291 } // namespace cc |
OLD | NEW |