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

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

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
9 namespace blink { 7 namespace blink {
10 8
11 CompositorTransformKeyframe::CompositorTransformKeyframe(double time, std::uniqu e_ptr<CompositorTransformOperations> value) 9 CompositorTransformKeyframe::CompositorTransformKeyframe(double time, PassOwnPtr <CompositorTransformOperations> value)
12 : m_time(time) 10 : m_time(time)
13 , m_value(std::move(value)) 11 , m_value(std::move(value))
14 { 12 {
15 } 13 }
16 14
17 CompositorTransformKeyframe::~CompositorTransformKeyframe() 15 CompositorTransformKeyframe::~CompositorTransformKeyframe()
18 { 16 {
19 m_value.reset(); 17 m_value.reset();
20 } 18 }
21 19
22 double CompositorTransformKeyframe::time() const 20 double CompositorTransformKeyframe::time() const
23 { 21 {
24 return m_time; 22 return m_time;
25 } 23 }
26 24
27 const CompositorTransformOperations& CompositorTransformKeyframe::value() const 25 const CompositorTransformOperations& CompositorTransformKeyframe::value() const
28 { 26 {
29 return *m_value.get(); 27 return *m_value.get();
30 } 28 }
31 29
32 } // namespace blink 30 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698