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 PaintPropertyTreeBuilder_h | 5 #ifndef PaintPropertyTreeBuilder_h |
6 #define PaintPropertyTreeBuilder_h | 6 #define PaintPropertyTreeBuilder_h |
7 | 7 |
8 #include "platform/geometry/LayoutPoint.h" | 8 #include "platform/geometry/LayoutPoint.h" |
9 #include "platform/graphics/paint/ClipPaintPropertyNode.h" | 9 #include "platform/graphics/paint/ClipPaintPropertyNode.h" |
10 #include "platform/graphics/paint/EffectPaintPropertyNode.h" | 10 #include "platform/graphics/paint/EffectPaintPropertyNode.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // This variable represents the input cull of current effect, also serves as | 87 // This variable represents the input cull of current effect, also serves as |
88 // output clip of child effects that don't have a hard clip. | 88 // output clip of child effects that don't have a hard clip. |
89 const ClipPaintPropertyNode* input_clip_of_current_effect; | 89 const ClipPaintPropertyNode* input_clip_of_current_effect; |
90 }; | 90 }; |
91 | 91 |
92 struct PaintPropertyTreeBuilderContext { | 92 struct PaintPropertyTreeBuilderContext { |
93 USING_FAST_MALLOC(PaintPropertyTreeBuilderContext); | 93 USING_FAST_MALLOC(PaintPropertyTreeBuilderContext); |
94 | 94 |
95 public: | 95 public: |
96 PaintPropertyTreeBuilderContext() | 96 PaintPropertyTreeBuilderContext() |
97 : container_for_absolute_position(nullptr), | 97 : container_for_absolute_position(nullptr), force_subtree_update(false) {} |
98 force_subtree_update(false) | |
99 { | |
100 } | |
101 | 98 |
102 Vector<PaintPropertyTreeBuilderFragmentContext, 1> fragments; | 99 Vector<PaintPropertyTreeBuilderFragmentContext, 1> fragments; |
103 const LayoutObject* container_for_absolute_position; | 100 const LayoutObject* container_for_absolute_position; |
104 | 101 |
105 // True if a change has forced all properties in a subtree to be updated. This | 102 // True if a change has forced all properties in a subtree to be updated. This |
106 // can be set due to paint offset changes or when the structure of the | 103 // can be set due to paint offset changes or when the structure of the |
107 // property tree changes (i.e., a node is added or removed). | 104 // property tree changes (i.e., a node is added or removed). |
108 bool force_subtree_update; | 105 bool force_subtree_update; |
109 | 106 |
110 #if DCHECK_IS_ON() | 107 #if DCHECK_IS_ON() |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 // Ensure the ObjectPaintProperties object is created if it will be needed, or | 209 // Ensure the ObjectPaintProperties object is created if it will be needed, or |
213 // cleared otherwise. | 210 // cleared otherwise. |
214 ALWAYS_INLINE static void UpdatePaintProperties( | 211 ALWAYS_INLINE static void UpdatePaintProperties( |
215 const LayoutObject&, | 212 const LayoutObject&, |
216 PaintPropertyTreeBuilderContext&); | 213 PaintPropertyTreeBuilderContext&); |
217 }; | 214 }; |
218 | 215 |
219 } // namespace blink | 216 } // namespace blink |
220 | 217 |
221 #endif // PaintPropertyTreeBuilder_h | 218 #endif // PaintPropertyTreeBuilder_h |
OLD | NEW |