OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef InterpolationPipeline_h |
| 6 #define InterpolationPipeline_h |
| 7 |
| 8 #include "core/animation/InterpolationPipelineStage.h" |
| 9 #include "platform/heap/Handle.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 class InterpolationPipeline : public RefCountedWillBeGarbageCollected<Interpolat
ionPipeline> { |
| 14 public: |
| 15 static PassRefPtrWillBeRawPtr<InterpolationPipeline> create() |
| 16 { |
| 17 return adoptRefWillBeNoop(new InterpolationPipeline()); |
| 18 } |
| 19 |
| 20 RefPtrWillBeRawPtr<InterpolationPipelineStage> first() const |
| 21 { |
| 22 return m_first; |
| 23 } |
| 24 |
| 25 RefPtrWillBeRawPtr<InterpolationPipelineStage> last() const |
| 26 { |
| 27 return m_last; |
| 28 } |
| 29 |
| 30 void append(PassRefPtrWillBeRawPtr<InterpolationPipelineStage>); |
| 31 bool isEmpty() const { return !m_first && !m_last; } |
| 32 |
| 33 void trace(Visitor* visitor) |
| 34 { |
| 35 m_first->trace(visitor); |
| 36 m_last->trace(visitor); |
| 37 } |
| 38 |
| 39 ~InterpolationPipeline() |
| 40 { |
| 41 } |
| 42 private: |
| 43 InterpolationPipeline() |
| 44 : m_first(nullptr) |
| 45 , m_last(nullptr) |
| 46 { |
| 47 } |
| 48 |
| 49 RefPtrWillBeMember<InterpolationPipelineStage> m_first; |
| 50 RefPtrWillBeMember<InterpolationPipelineStage> m_last; |
| 51 }; |
| 52 |
| 53 using InterpolationPipelineMap = WillBeHeapHashMap<CSSPropertyID, RefPtrWillBeRa
wPtr<InterpolationPipeline>>; |
| 54 |
| 55 } // namespace blink |
| 56 |
| 57 #endif // InterpolationPipeline_h |
OLD | NEW |