| 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 PairwiseInterpolationValue_h | 5 #ifndef PairwiseInterpolationValue_h |
| 6 #define PairwiseInterpolationValue_h | 6 #define PairwiseInterpolationValue_h |
| 7 | 7 |
| 8 #include "core/animation/InterpolableValue.h" | 8 #include "core/animation/InterpolableValue.h" |
| 9 #include "core/animation/NonInterpolableValue.h" | 9 #include "core/animation/NonInterpolableValue.h" |
| 10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 PassRefPtr<NonInterpolableValue> nonInterpolableValue = nullptr) | 23 PassRefPtr<NonInterpolableValue> nonInterpolableValue = nullptr) |
| 24 : startInterpolableValue(std::move(startInterpolableValue)), | 24 : startInterpolableValue(std::move(startInterpolableValue)), |
| 25 endInterpolableValue(std::move(endInterpolableValue)), | 25 endInterpolableValue(std::move(endInterpolableValue)), |
| 26 nonInterpolableValue(std::move(nonInterpolableValue)) {} | 26 nonInterpolableValue(std::move(nonInterpolableValue)) {} |
| 27 | 27 |
| 28 PairwiseInterpolationValue(std::nullptr_t) {} | 28 PairwiseInterpolationValue(std::nullptr_t) {} |
| 29 | 29 |
| 30 PairwiseInterpolationValue(PairwiseInterpolationValue&& other) | 30 PairwiseInterpolationValue(PairwiseInterpolationValue&& other) |
| 31 : startInterpolableValue(std::move(other.startInterpolableValue)), | 31 : startInterpolableValue(std::move(other.startInterpolableValue)), |
| 32 endInterpolableValue(std::move(other.endInterpolableValue)), | 32 endInterpolableValue(std::move(other.endInterpolableValue)), |
| 33 nonInterpolableValue(other.nonInterpolableValue.release()) {} | 33 nonInterpolableValue(std::move(other.nonInterpolableValue)) {} |
| 34 | 34 |
| 35 operator bool() const { return startInterpolableValue.get(); } | 35 operator bool() const { return startInterpolableValue.get(); } |
| 36 | 36 |
| 37 std::unique_ptr<InterpolableValue> startInterpolableValue; | 37 std::unique_ptr<InterpolableValue> startInterpolableValue; |
| 38 std::unique_ptr<InterpolableValue> endInterpolableValue; | 38 std::unique_ptr<InterpolableValue> endInterpolableValue; |
| 39 RefPtr<NonInterpolableValue> nonInterpolableValue; | 39 RefPtr<NonInterpolableValue> nonInterpolableValue; |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 } // namespace blink | 42 } // namespace blink |
| 43 | 43 |
| 44 #endif // PairwiseInterpolationValue_h | 44 #endif // PairwiseInterpolationValue_h |
| OLD | NEW |