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

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

Issue 1869753003: Replace many skia::RefPtr with sk_sp<> in cc/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Florin's nits Created 4 years, 7 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 | cc/blink/web_image_layer_impl.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 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 <algorithm>
8
7 #include "cc/animation/animation_delegate.h" 9 #include "cc/animation/animation_delegate.h"
8 #include "cc/animation/animation_host.h" 10 #include "cc/animation/animation_host.h"
9 #include "cc/animation/animation_timeline.h" 11 #include "cc/animation/animation_timeline.h"
10 #include "cc/animation/element_animations.h" 12 #include "cc/animation/element_animations.h"
11 13
12 namespace cc { 14 namespace cc {
13 15
14 scoped_refptr<AnimationPlayer> AnimationPlayer::Create(int id) { 16 scoped_refptr<AnimationPlayer> AnimationPlayer::Create(int id) {
15 return make_scoped_refptr(new AnimationPlayer(id)); 17 return make_scoped_refptr(new AnimationPlayer(id));
16 } 18 }
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 } 221 }
220 } 222 }
221 223
222 void AnimationPlayer::SetNeedsCommit() { 224 void AnimationPlayer::SetNeedsCommit() {
223 DCHECK(animation_host_); 225 DCHECK(animation_host_);
224 animation_host_->SetNeedsCommit(); 226 animation_host_->SetNeedsCommit();
225 animation_host_->SetNeedsRebuildPropertyTrees(); 227 animation_host_->SetNeedsRebuildPropertyTrees();
226 } 228 }
227 229
228 } // namespace cc 230 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/blink/web_image_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698