OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "config.h" | 5 #include "config.h" |
6 #include "core/rendering/compositing/CompositingInputsUpdater.h" | 6 #include "core/rendering/compositing/CompositingInputsUpdater.h" |
7 | 7 |
8 #include "core/rendering/RenderBlock.h" | 8 #include "core/rendering/RenderBlock.h" |
9 #include "core/rendering/RenderLayer.h" | 9 #include "core/rendering/RenderLayer.h" |
10 #include "core/rendering/compositing/CompositedLayerMapping.h" | 10 #include "core/rendering/compositing/CompositedLayerMapping.h" |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 return false; | 89 return false; |
90 } | 90 } |
91 | 91 |
92 void CompositingInputsUpdater::updateRecursive(RenderLayer* layer, UpdateType up
dateType, AncestorInfo info) | 92 void CompositingInputsUpdater::updateRecursive(RenderLayer* layer, UpdateType up
dateType, AncestorInfo info) |
93 { | 93 { |
94 if (!layer->childNeedsCompositingInputsUpdate() && updateType != ForceUpdate
) | 94 if (!layer->childNeedsCompositingInputsUpdate() && updateType != ForceUpdate
) |
95 return; | 95 return; |
96 | 96 |
97 m_geometryMap.pushMappingsToAncestor(layer, layer->parent()); | 97 m_geometryMap.pushMappingsToAncestor(layer, layer->parent()); |
98 | 98 |
99 if (layer->hasCompositedLayerMapping()) | 99 if (layer->compositedLayerMapping()) |
100 info.enclosingCompositedLayer = layer; | 100 info.enclosingCompositedLayer = layer; |
101 | 101 |
102 if (layer->needsCompositingInputsUpdate()) { | 102 if (layer->needsCompositingInputsUpdate()) { |
103 if (info.enclosingCompositedLayer) | 103 if (info.enclosingCompositedLayer) |
104 info.enclosingCompositedLayer->compositedLayerMapping()->setNeedsGra
phicsLayerUpdate(GraphicsLayerUpdateSubtree); | 104 info.enclosingCompositedLayer->compositedLayerMapping()->setNeedsGra
phicsLayerUpdate(GraphicsLayerUpdateSubtree); |
105 updateType = ForceUpdate; | 105 updateType = ForceUpdate; |
106 } | 106 } |
107 | 107 |
108 if (updateType == ForceUpdate) { | 108 if (updateType == ForceUpdate) { |
109 RenderLayer::AncestorDependentCompositingInputs properties; | 109 RenderLayer::AncestorDependentCompositingInputs properties; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 ASSERT(!layer->childNeedsCompositingInputsUpdate()); | 188 ASSERT(!layer->childNeedsCompositingInputsUpdate()); |
189 ASSERT(!layer->needsCompositingInputsUpdate()); | 189 ASSERT(!layer->needsCompositingInputsUpdate()); |
190 | 190 |
191 for (RenderLayer* child = layer->firstChild(); child; child = child->nextSib
ling()) | 191 for (RenderLayer* child = layer->firstChild(); child; child = child->nextSib
ling()) |
192 assertNeedsCompositingInputsUpdateBitsCleared(child); | 192 assertNeedsCompositingInputsUpdateBitsCleared(child); |
193 } | 193 } |
194 | 194 |
195 #endif | 195 #endif |
196 | 196 |
197 } // namespace blink | 197 } // namespace blink |
OLD | NEW |