| 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 #ifndef CompositorTransformKeyframe_h | 5 #ifndef CompositorTransformKeyframe_h |
| 6 #define CompositorTransformKeyframe_h | 6 #define CompositorTransformKeyframe_h |
| 7 | 7 |
| 8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "platform/animation/CompositorTransformOperations.h" | 9 #include "platform/animation/CompositorTransformOperations.h" |
| 10 #include "wtf/Noncopyable.h" | 10 #include "wtf/Noncopyable.h" |
| 11 #include <memory> | 11 #include "wtf/OwnPtr.h" |
| 12 #include "wtf/PassOwnPtr.h" |
| 12 | 13 |
| 13 namespace blink { | 14 namespace blink { |
| 14 | 15 |
| 15 class PLATFORM_EXPORT CompositorTransformKeyframe { | 16 class PLATFORM_EXPORT CompositorTransformKeyframe { |
| 16 WTF_MAKE_NONCOPYABLE(CompositorTransformKeyframe); | 17 WTF_MAKE_NONCOPYABLE(CompositorTransformKeyframe); |
| 17 public: | 18 public: |
| 18 CompositorTransformKeyframe(double time, std::unique_ptr<CompositorTransform
Operations> value); | 19 CompositorTransformKeyframe(double time, PassOwnPtr<CompositorTransformOpera
tions> value); |
| 19 ~CompositorTransformKeyframe(); | 20 ~CompositorTransformKeyframe(); |
| 20 | 21 |
| 21 double time() const; | 22 double time() const; |
| 22 const CompositorTransformOperations& value() const; | 23 const CompositorTransformOperations& value() const; |
| 23 | 24 |
| 24 private: | 25 private: |
| 25 double m_time; | 26 double m_time; |
| 26 std::unique_ptr<CompositorTransformOperations> m_value; | 27 OwnPtr<CompositorTransformOperations> m_value; |
| 27 }; | 28 }; |
| 28 | 29 |
| 29 } // namespace blink | 30 } // namespace blink |
| 30 | 31 |
| 31 #endif // CompositorTransformKeyframe_h | 32 #endif // CompositorTransformKeyframe_h |
| OLD | NEW |