| 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 PropertyTreeManager_h | 5 #ifndef PropertyTreeManager_h |
| 6 #define PropertyTreeManager_h | 6 #define PropertyTreeManager_h |
| 7 | 7 |
| 8 #include "wtf/HashMap.h" | 8 #include "wtf/HashMap.h" |
| 9 #include "wtf/HashSet.h" | 9 #include "wtf/HashSet.h" |
| 10 #include "wtf/Noncopyable.h" | 10 #include "wtf/Noncopyable.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 int ensureCompositorTransformNode(const TransformPaintPropertyNode*); | 76 int ensureCompositorTransformNode(const TransformPaintPropertyNode*); |
| 77 int ensureCompositorClipNode(const ClipPaintPropertyNode*); | 77 int ensureCompositorClipNode(const ClipPaintPropertyNode*); |
| 78 int ensureCompositorScrollNode(const ScrollPaintPropertyNode*); | 78 int ensureCompositorScrollNode(const ScrollPaintPropertyNode*); |
| 79 | 79 |
| 80 int switchToEffectNode(const EffectPaintPropertyNode& nextEffect); | 80 int switchToEffectNode(const EffectPaintPropertyNode& nextEffect); |
| 81 int getCurrentCompositorEffectNodeIndex() const { | 81 int getCurrentCompositorEffectNodeIndex() const { |
| 82 return m_effectStack.back().id; | 82 return m_effectStack.back().id; |
| 83 } | 83 } |
| 84 | 84 |
| 85 // Scroll offset has special treatment in the transform and scroll trees. | 85 // Scroll offset has special treatment in the transform and scroll trees. |
| 86 void updateScrollOffset(int layerId, int scrollId); | 86 void updateScrollOffset(const ScrollPaintPropertyNode*); |
| 87 | 87 |
| 88 private: | 88 private: |
| 89 void buildEffectNodesRecursively(const EffectPaintPropertyNode* nextEffect); | 89 void buildEffectNodesRecursively(const EffectPaintPropertyNode* nextEffect); |
| 90 | 90 |
| 91 cc::TransformTree& transformTree(); | 91 cc::TransformTree& transformTree(); |
| 92 cc::ClipTree& clipTree(); | 92 cc::ClipTree& clipTree(); |
| 93 cc::EffectTree& effectTree(); | 93 cc::EffectTree& effectTree(); |
| 94 cc::ScrollTree& scrollTree(); | 94 cc::ScrollTree& scrollTree(); |
| 95 | 95 |
| 96 const EffectPaintPropertyNode* currentEffectNode() const; | 96 const EffectPaintPropertyNode* currentEffectNode() const; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 116 Vector<BlinkEffectAndCcIdPair> m_effectStack; | 116 Vector<BlinkEffectAndCcIdPair> m_effectStack; |
| 117 | 117 |
| 118 #if DCHECK_IS_ON() | 118 #if DCHECK_IS_ON() |
| 119 HashSet<const EffectPaintPropertyNode*> m_effectNodesConverted; | 119 HashSet<const EffectPaintPropertyNode*> m_effectNodesConverted; |
| 120 #endif | 120 #endif |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 } // namespace blink | 123 } // namespace blink |
| 124 | 124 |
| 125 #endif // PropertyTreeManager_h | 125 #endif // PropertyTreeManager_h |
| OLD | NEW |