| 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 "cc/animation/keyframed_animation_curve.h" | 8 #include "cc/animation/keyframed_animation_curve.h" |
| 9 #include "platform/PlatformExport.h" | 9 #include "platform/PlatformExport.h" |
| 10 #include "platform/animation/CompositorKeyframe.h" | 10 #include "platform/animation/CompositorKeyframe.h" |
| 11 #include "platform/animation/CompositorTransformOperations.h" | 11 #include "platform/animation/CompositorTransformOperations.h" |
| 12 #include "platform/animation/TimingFunction.h" | 12 #include "platform/animation/TimingFunction.h" |
| 13 #include "wtf/Noncopyable.h" | 13 #include "platform/wtf/Noncopyable.h" |
| 14 | 14 |
| 15 namespace blink { | 15 namespace blink { |
| 16 | 16 |
| 17 class PLATFORM_EXPORT CompositorTransformKeyframe : public CompositorKeyframe { | 17 class PLATFORM_EXPORT CompositorTransformKeyframe : public CompositorKeyframe { |
| 18 WTF_MAKE_NONCOPYABLE(CompositorTransformKeyframe); | 18 WTF_MAKE_NONCOPYABLE(CompositorTransformKeyframe); |
| 19 | 19 |
| 20 public: | 20 public: |
| 21 CompositorTransformKeyframe(double time, | 21 CompositorTransformKeyframe(double time, |
| 22 CompositorTransformOperations value, | 22 CompositorTransformOperations value, |
| 23 const TimingFunction&); | 23 const TimingFunction&); |
| 24 ~CompositorTransformKeyframe(); | 24 ~CompositorTransformKeyframe(); |
| 25 | 25 |
| 26 std::unique_ptr<cc::TransformKeyframe> cloneToCC() const; | 26 std::unique_ptr<cc::TransformKeyframe> cloneToCC() const; |
| 27 | 27 |
| 28 // CompositorKeyframe implementation. | 28 // CompositorKeyframe implementation. |
| 29 double time() const override; | 29 double time() const override; |
| 30 const cc::TimingFunction* ccTimingFunction() const override; | 30 const cc::TimingFunction* ccTimingFunction() const override; |
| 31 | 31 |
| 32 private: | 32 private: |
| 33 std::unique_ptr<cc::TransformKeyframe> m_transformKeyframe; | 33 std::unique_ptr<cc::TransformKeyframe> m_transformKeyframe; |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 } // namespace blink | 36 } // namespace blink |
| 37 | 37 |
| 38 #endif // CompositorTransformKeyframe_h | 38 #endif // CompositorTransformKeyframe_h |
| OLD | NEW |