| 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 "platform/wtf/HashMap.h" | 8 #include "platform/wtf/HashMap.h" |
| 9 #include "platform/wtf/HashSet.h" | 9 #include "platform/wtf/HashSet.h" |
| 10 #include "platform/wtf/Noncopyable.h" | 10 #include "platform/wtf/Noncopyable.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 // until |owning_layer_id| is removed from the scroll node. | 79 // until |owning_layer_id| is removed from the scroll node. |
| 80 void UpdateLayerScrollMapping(cc::Layer*, const TransformPaintPropertyNode*); | 80 void UpdateLayerScrollMapping(cc::Layer*, const TransformPaintPropertyNode*); |
| 81 | 81 |
| 82 int SwitchToEffectNode(const EffectPaintPropertyNode& next_effect); | 82 int SwitchToEffectNode(const EffectPaintPropertyNode& next_effect); |
| 83 int GetCurrentCompositorEffectNodeIndex() const { | 83 int GetCurrentCompositorEffectNodeIndex() const { |
| 84 return effect_stack_.back().id; | 84 return effect_stack_.back().id; |
| 85 } | 85 } |
| 86 | 86 |
| 87 private: | 87 private: |
| 88 void BuildEffectNodesRecursively(const EffectPaintPropertyNode* next_effect); | 88 void BuildEffectNodesRecursively(const EffectPaintPropertyNode* next_effect); |
| 89 void BuildEffectNode(const EffectPaintPropertyNode*); |
| 90 |
| 91 void BuildRoundedClipEffectNodesBetween( |
| 92 const ClipPaintPropertyNode* descendant_clip, |
| 93 const ClipPaintPropertyNode* ancestor_clip); |
| 94 void BuildRoundedClipEffect(const ClipPaintPropertyNode*); |
| 89 | 95 |
| 90 cc::TransformTree& GetTransformTree(); | 96 cc::TransformTree& GetTransformTree(); |
| 91 cc::ClipTree& GetClipTree(); | 97 cc::ClipTree& GetClipTree(); |
| 92 cc::EffectTree& GetEffectTree(); | 98 cc::EffectTree& GetEffectTree(); |
| 93 cc::ScrollTree& GetScrollTree(); | 99 cc::ScrollTree& GetScrollTree(); |
| 94 | 100 |
| 95 int EnsureCompositorScrollNode(const ScrollPaintPropertyNode*); | 101 int EnsureCompositorScrollNode(const ScrollPaintPropertyNode*); |
| 96 | 102 |
| 97 const EffectPaintPropertyNode* CurrentEffectNode() const; | 103 const EffectPaintPropertyNode* CurrentEffectNode() const; |
| 98 | 104 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 121 int sequence_number_; | 127 int sequence_number_; |
| 122 | 128 |
| 123 #if DCHECK_IS_ON() | 129 #if DCHECK_IS_ON() |
| 124 HashSet<const EffectPaintPropertyNode*> effect_nodes_converted_; | 130 HashSet<const EffectPaintPropertyNode*> effect_nodes_converted_; |
| 125 #endif | 131 #endif |
| 126 }; | 132 }; |
| 127 | 133 |
| 128 } // namespace blink | 134 } // namespace blink |
| 129 | 135 |
| 130 #endif // PropertyTreeManager_h | 136 #endif // PropertyTreeManager_h |
| OLD | NEW |