OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef StackableInterpolation_h |
| 6 #define StackableInterpolation_h |
| 7 |
| 8 #include "core/animation/Interpolation.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 class InterpolationEnvironment; |
| 13 class TypedInterpolationValue; |
| 14 class UnderlyingValueOwner; |
| 15 |
| 16 class StackableInterpolation : public Interpolation { |
| 17 public: |
| 18 static void applyStack(const ActiveInterpolations&, InterpolationEnvironment
&); |
| 19 |
| 20 virtual bool isStackableInterpolation() const { return true; } |
| 21 |
| 22 protected: |
| 23 virtual std::unique_ptr<TypedInterpolationValue> maybeConvertUnderlyingValue
(const InterpolationEnvironment&) const = 0; |
| 24 virtual const TypedInterpolationValue* ensureValidInterpolation(const Interp
olationEnvironment&, const UnderlyingValueOwner&) const = 0; |
| 25 virtual void setFlagIfInheritUsed(InterpolationEnvironment&) const {} |
| 26 virtual double underlyingFraction() const = 0; |
| 27 }; |
| 28 |
| 29 DEFINE_TYPE_CASTS(StackableInterpolation, Interpolation, value, value->isStackab
leInterpolation(), value.isStackableInterpolation()); |
| 30 |
| 31 } // namespace blink |
| 32 |
| 33 #endif // StackableInterpolation_h |
OLD | NEW |