OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 ListInterpolationFunctions_h | 5 #ifndef ListInterpolationFunctions_h |
6 #define ListInterpolationFunctions_h | 6 #define ListInterpolationFunctions_h |
7 | 7 |
| 8 #include <memory> |
8 #include "core/animation/InterpolationValue.h" | 9 #include "core/animation/InterpolationValue.h" |
9 #include "core/animation/PairwiseInterpolationValue.h" | 10 #include "core/animation/PairwiseInterpolationValue.h" |
10 #include "wtf/Vector.h" | 11 #include "wtf/Vector.h" |
11 #include <memory> | |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 class UnderlyingValueOwner; | 15 class UnderlyingValueOwner; |
16 class InterpolationType; | 16 class InterpolationType; |
17 | 17 |
18 class ListInterpolationFunctions { | 18 class ListInterpolationFunctions { |
19 public: | 19 public: |
20 template <typename CreateItemCallback> | 20 template <typename CreateItemCallback> |
21 static InterpolationValue createList(size_t length, CreateItemCallback); | 21 static InterpolationValue createList(size_t length, CreateItemCallback); |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 nonInterpolableValues[i] = std::move(item.nonInterpolableValue); | 102 nonInterpolableValues[i] = std::move(item.nonInterpolableValue); |
103 } | 103 } |
104 return InterpolationValue( | 104 return InterpolationValue( |
105 std::move(interpolableList), | 105 std::move(interpolableList), |
106 NonInterpolableList::create(std::move(nonInterpolableValues))); | 106 NonInterpolableList::create(std::move(nonInterpolableValues))); |
107 } | 107 } |
108 | 108 |
109 } // namespace blink | 109 } // namespace blink |
110 | 110 |
111 #endif // ListInterpolationFunctions_h | 111 #endif // ListInterpolationFunctions_h |
OLD | NEW |