| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 "cc/trees/layer_tree_impl.h" | 5 #include "cc/trees/layer_tree_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 | 324 |
| 325 void LayerTreeImpl::BuildLayerListForTesting() { | 325 void LayerTreeImpl::BuildLayerListForTesting() { |
| 326 ClearLayerList(); | 326 ClearLayerList(); |
| 327 LayerListIterator<LayerImpl> it(root_layer_for_testing_); | 327 LayerListIterator<LayerImpl> it(root_layer_for_testing_); |
| 328 for (; it != LayerListIterator<LayerImpl>(nullptr); ++it) { | 328 for (; it != LayerListIterator<LayerImpl>(nullptr); ++it) { |
| 329 AddToLayerList(*it); | 329 AddToLayerList(*it); |
| 330 } | 330 } |
| 331 } | 331 } |
| 332 | 332 |
| 333 void LayerTreeImpl::InvalidateRegionForImages( | 333 void LayerTreeImpl::InvalidateRegionForImages( |
| 334 const ImageIdFlatSet& images_to_invalidate) { | 334 const PaintImageIdFlatSet& images_to_invalidate) { |
| 335 DCHECK(IsSyncTree()); | 335 DCHECK(IsSyncTree()); |
| 336 | 336 |
| 337 if (images_to_invalidate.empty()) | 337 if (images_to_invalidate.empty()) |
| 338 return; | 338 return; |
| 339 | 339 |
| 340 for (auto* picture_layer : picture_layers_) | 340 for (auto* picture_layer : picture_layers_) |
| 341 picture_layer->InvalidateRegionForImages(images_to_invalidate); | 341 picture_layer->InvalidateRegionForImages(images_to_invalidate); |
| 342 } | 342 } |
| 343 | 343 |
| 344 bool LayerTreeImpl::IsRootLayer(const LayerImpl* layer) const { | 344 bool LayerTreeImpl::IsRootLayer(const LayerImpl* layer) const { |
| (...skipping 1793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2138 | 2138 |
| 2139 void LayerTreeImpl::ResetAllChangeTracking() { | 2139 void LayerTreeImpl::ResetAllChangeTracking() { |
| 2140 layers_that_should_push_properties_.clear(); | 2140 layers_that_should_push_properties_.clear(); |
| 2141 // Iterate over all layers, including masks. | 2141 // Iterate over all layers, including masks. |
| 2142 for (auto& layer : *layers_) | 2142 for (auto& layer : *layers_) |
| 2143 layer->ResetChangeTracking(); | 2143 layer->ResetChangeTracking(); |
| 2144 property_trees_.ResetAllChangeTracking(); | 2144 property_trees_.ResetAllChangeTracking(); |
| 2145 } | 2145 } |
| 2146 | 2146 |
| 2147 } // namespace cc | 2147 } // namespace cc |
| OLD | NEW |