OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "platform/animation/CompositorTransformKeyframe.h" |
| 6 |
| 7 namespace blink { |
| 8 |
| 9 CompositorTransformKeyframe::CompositorTransformKeyframe(double time, PassOwnPtr
<CompositorTransformOperations> value) |
| 10 : m_time(time) |
| 11 , m_value(std::move(value)) |
| 12 { |
| 13 } |
| 14 |
| 15 CompositorTransformKeyframe::~CompositorTransformKeyframe() |
| 16 { |
| 17 m_value.clear(); |
| 18 } |
| 19 |
| 20 double CompositorTransformKeyframe::time() const |
| 21 { |
| 22 return m_time; |
| 23 } |
| 24 |
| 25 const CompositorTransformOperations& CompositorTransformKeyframe::value() const |
| 26 { |
| 27 return *m_value.get(); |
| 28 } |
| 29 |
| 30 } // namespace blink |
OLD | NEW |