Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: cc/animation/animation.cc

Issue 895853003: Update from https://crrev.com/314320 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/PRESUBMIT.py ('k') | cc/base/math_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « cc/PRESUBMIT.py ('k') | cc/base/math_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698