| 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 CompositorAnimation_h | 5 #ifndef CompositorAnimation_h |
| 6 #define CompositorAnimation_h | 6 #define CompositorAnimation_h |
| 7 | 7 |
| 8 #include "cc/animation/animation.h" | 8 #include "cc/animation/animation.h" |
| 9 #include "platform/PlatformExport.h" | 9 #include "platform/PlatformExport.h" |
| 10 #include "platform/animation/CompositorTargetProperty.h" | 10 #include "platform/animation/CompositorTargetProperty.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 public: | 28 public: |
| 29 using Direction = cc::Animation::Direction; | 29 using Direction = cc::Animation::Direction; |
| 30 using FillMode = cc::Animation::FillMode; | 30 using FillMode = cc::Animation::FillMode; |
| 31 | 31 |
| 32 static std::unique_ptr<CompositorAnimation> create( | 32 static std::unique_ptr<CompositorAnimation> create( |
| 33 const blink::CompositorAnimationCurve& curve, | 33 const blink::CompositorAnimationCurve& curve, |
| 34 CompositorTargetProperty::Type target, | 34 CompositorTargetProperty::Type target, |
| 35 int groupId, | 35 int groupId, |
| 36 int animationId) { | 36 int animationId) { |
| 37 return wrapUnique( | 37 return WTF::wrapUnique( |
| 38 new CompositorAnimation(curve, target, animationId, groupId)); | 38 new CompositorAnimation(curve, target, animationId, groupId)); |
| 39 } | 39 } |
| 40 | 40 |
| 41 ~CompositorAnimation(); | 41 ~CompositorAnimation(); |
| 42 | 42 |
| 43 // An id must be unique. | 43 // An id must be unique. |
| 44 int id() const; | 44 int id() const; |
| 45 int group() const; | 45 int group() const; |
| 46 | 46 |
| 47 CompositorTargetProperty::Type targetProperty() const; | 47 CompositorTargetProperty::Type targetProperty() const; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 CompositorTargetProperty::Type, | 79 CompositorTargetProperty::Type, |
| 80 int animationId, | 80 int animationId, |
| 81 int groupId); | 81 int groupId); |
| 82 | 82 |
| 83 std::unique_ptr<cc::Animation> m_animation; | 83 std::unique_ptr<cc::Animation> m_animation; |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } // namespace blink | 86 } // namespace blink |
| 87 | 87 |
| 88 #endif // CompositorAnimation_h | 88 #endif // CompositorAnimation_h |
| OLD | NEW |