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