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

Unified Diff: cc/animation/animation_timeline.cc

Issue 1814103002: CC Animation: Use unordered_map instead of vector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use move semantics on insertions. Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/animation/animation_host.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/animation_timeline.cc
diff --git a/cc/animation/animation_timeline.cc b/cc/animation/animation_timeline.cc
index cb1733109d0914b2ee0bba49ef42c2eeaf4806f5..42591d01dcca4501a00bb809587887a8fb13b3c0 100644
--- a/cc/animation/animation_timeline.cc
+++ b/cc/animation/animation_timeline.cc
@@ -38,7 +38,7 @@ void AnimationTimeline::AttachPlayer(scoped_refptr<AnimationPlayer> player) {
DCHECK(player->id());
player->SetAnimationHost(animation_host_);
player->SetAnimationTimeline(this);
- id_to_player_map_.insert(std::make_pair(player->id(), player));
+ id_to_player_map_.insert(std::make_pair(player->id(), std::move(player)));
}
void AnimationTimeline::DetachPlayer(scoped_refptr<AnimationPlayer> player) {
« no previous file with comments | « cc/animation/animation_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698