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

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

Issue 588133002: CC: Change default fill mode for compositor animations with delay (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | no next file » | 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" 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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698