| OLD | NEW |
| 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 |
| OLD | NEW |