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

Side by Side Diff: third_party/WebKit/Source/platform/animation/CompositorTransformKeyframe.cpp

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "platform/animation/CompositorTransformKeyframe.h" 5 #include "platform/animation/CompositorTransformKeyframe.h"
6 6
7 #include <memory>
8
7 namespace blink { 9 namespace blink {
8 10
9 CompositorTransformKeyframe::CompositorTransformKeyframe(double time, PassOwnPtr <CompositorTransformOperations> value) 11 CompositorTransformKeyframe::CompositorTransformKeyframe(double time, std::uniqu e_ptr<CompositorTransformOperations> value)
10 : m_time(time) 12 : m_time(time)
11 , m_value(std::move(value)) 13 , m_value(std::move(value))
12 { 14 {
13 } 15 }
14 16
15 CompositorTransformKeyframe::~CompositorTransformKeyframe() 17 CompositorTransformKeyframe::~CompositorTransformKeyframe()
16 { 18 {
17 m_value.reset(); 19 m_value.reset();
18 } 20 }
19 21
20 double CompositorTransformKeyframe::time() const 22 double CompositorTransformKeyframe::time() const
21 { 23 {
22 return m_time; 24 return m_time;
23 } 25 }
24 26
25 const CompositorTransformOperations& CompositorTransformKeyframe::value() const 27 const CompositorTransformOperations& CompositorTransformKeyframe::value() const
26 { 28 {
27 return *m_value.get(); 29 return *m_value.get();
28 } 30 }
29 31
30 } // namespace blink 32 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698