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

Unified Diff: ui/compositor/layer_animation_sequence.cc

Issue 2550933002: Make all LayerAnimationElement::Create*Element return unique_ptr (Closed)
Patch Set: Created 4 years 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
Index: ui/compositor/layer_animation_sequence.cc
diff --git a/ui/compositor/layer_animation_sequence.cc b/ui/compositor/layer_animation_sequence.cc
index f4919f381a177dfec53e57824254c4ff5e19a194..7c074a67d3be469b75fbc072b4a0c6d93a50e97d 100644
--- a/ui/compositor/layer_animation_sequence.cc
+++ b/ui/compositor/layer_animation_sequence.cc
@@ -184,7 +184,7 @@ void LayerAnimationSequence::Abort(LayerAnimationDelegate* delegate) {
void LayerAnimationSequence::AddElement(LayerAnimationElement* element) {
loyso (OOO) 2016/12/06 04:21:56 AddElement(std::unique_ptr<LayerAnimationElement>
properties_ |= element->properties();
- elements_.push_back(make_linked_ptr(element));
+ elements_.emplace_back(element);
loyso (OOO) 2016/12/06 04:21:56 push_back(std::move(element))
}
bool LayerAnimationSequence::HasConflictingProperty(
« ash/wm/session_state_animator_impl.cc ('K') | « ui/compositor/layer_animation_sequence.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698