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 FilterInterpolationFunctions_h | 5 #ifndef FilterInterpolationFunctions_h |
6 #define FilterInterpolationFunctions_h | 6 #define FilterInterpolationFunctions_h |
7 | 7 |
| 8 #include <memory> |
8 #include "core/animation/InterpolationValue.h" | 9 #include "core/animation/InterpolationValue.h" |
9 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
10 #include <memory> | |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class FilterOperation; | 14 class FilterOperation; |
15 class CSSValue; | 15 class CSSValue; |
16 class StyleResolverState; | 16 class StyleResolverState; |
17 | 17 |
18 namespace FilterInterpolationFunctions { | 18 namespace FilterInterpolationFunctions { |
19 | 19 |
20 InterpolationValue maybeConvertCSSFilter(const CSSValue&); | 20 InterpolationValue maybeConvertCSSFilter(const CSSValue&); |
21 InterpolationValue maybeConvertFilter(const FilterOperation&, double zoom); | 21 InterpolationValue maybeConvertFilter(const FilterOperation&, double zoom); |
22 std::unique_ptr<InterpolableValue> createNoneValue(const NonInterpolableValue&); | 22 std::unique_ptr<InterpolableValue> createNoneValue(const NonInterpolableValue&); |
23 bool filtersAreCompatible(const NonInterpolableValue&, | 23 bool filtersAreCompatible(const NonInterpolableValue&, |
24 const NonInterpolableValue&); | 24 const NonInterpolableValue&); |
25 FilterOperation* createFilter(const InterpolableValue&, | 25 FilterOperation* createFilter(const InterpolableValue&, |
26 const NonInterpolableValue&, | 26 const NonInterpolableValue&, |
27 const StyleResolverState&); | 27 const StyleResolverState&); |
28 | 28 |
29 } // namespace FilterInterpolationFunctions | 29 } // namespace FilterInterpolationFunctions |
30 | 30 |
31 } // namespace blink | 31 } // namespace blink |
32 | 32 |
33 #endif // FilterInterpolationFunctions_h | 33 #endif // FilterInterpolationFunctions_h |
OLD | NEW |