| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_player.h" | 5 #include "cc/animation/animation_player.h" |
| 6 | 6 |
| 7 #include "cc/animation/animation_delegate.h" | 7 #include "cc/animation/animation_delegate.h" |
| 8 #include "cc/animation/animation_host.h" | 8 #include "cc/animation/animation_host.h" |
| 9 #include "cc/animation/animation_timeline.h" | 9 #include "cc/animation/animation_timeline.h" |
| 10 #include "cc/animation/element_animations.h" | |
| 11 #include "cc/animation/layer_animation_controller.h" | 10 #include "cc/animation/layer_animation_controller.h" |
| 12 | 11 |
| 13 namespace cc { | 12 namespace cc { |
| 14 | 13 |
| 15 scoped_refptr<AnimationPlayer> AnimationPlayer::Create(int id) { | 14 scoped_refptr<AnimationPlayer> AnimationPlayer::Create(int id) { |
| 16 return make_scoped_refptr(new AnimationPlayer(id)); | 15 return make_scoped_refptr(new AnimationPlayer(id)); |
| 17 } | 16 } |
| 18 | 17 |
| 19 AnimationPlayer::AnimationPlayer(int id) | 18 AnimationPlayer::AnimationPlayer(int id) |
| 20 : animation_host_(), | 19 : animation_host_(), |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 } | 219 } |
| 221 } | 220 } |
| 222 | 221 |
| 223 void AnimationPlayer::SetNeedsCommit() { | 222 void AnimationPlayer::SetNeedsCommit() { |
| 224 DCHECK(animation_host_); | 223 DCHECK(animation_host_); |
| 225 animation_host_->SetNeedsCommit(); | 224 animation_host_->SetNeedsCommit(); |
| 226 animation_host_->SetNeedsRebuildPropertyTrees(); | 225 animation_host_->SetNeedsRebuildPropertyTrees(); |
| 227 } | 226 } |
| 228 | 227 |
| 229 } // namespace cc | 228 } // namespace cc |
| OLD | NEW |