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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 | 304 |
305 void LayerTreeImpl::BuildLayerListForTesting() { | 305 void LayerTreeImpl::BuildLayerListForTesting() { |
306 ClearLayerList(); | 306 ClearLayerList(); |
307 LayerListIterator<LayerImpl> it(root_layer_for_testing_); | 307 LayerListIterator<LayerImpl> it(root_layer_for_testing_); |
308 for (; it != LayerListIterator<LayerImpl>(nullptr); ++it) { | 308 for (; it != LayerListIterator<LayerImpl>(nullptr); ++it) { |
309 AddToLayerList(*it); | 309 AddToLayerList(*it); |
310 } | 310 } |
311 } | 311 } |
312 | 312 |
313 void LayerTreeImpl::InvalidateRegionForImages( | 313 void LayerTreeImpl::InvalidateRegionForImages( |
314 const ImageIdFlatSet& images_to_invalidate) { | 314 const PaintImageIdFlatSet& images_to_invalidate) { |
315 DCHECK(IsSyncTree()); | 315 DCHECK(IsSyncTree()); |
316 | 316 |
317 if (images_to_invalidate.empty()) | 317 if (images_to_invalidate.empty()) |
318 return; | 318 return; |
319 | 319 |
320 for (auto* picture_layer : picture_layers_) | 320 for (auto* picture_layer : picture_layers_) |
321 picture_layer->InvalidateRegionForImages(images_to_invalidate); | 321 picture_layer->InvalidateRegionForImages(images_to_invalidate); |
322 } | 322 } |
323 | 323 |
324 bool LayerTreeImpl::IsRootLayer(const LayerImpl* layer) const { | 324 bool LayerTreeImpl::IsRootLayer(const LayerImpl* layer) const { |
(...skipping 1784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2109 | 2109 |
2110 void LayerTreeImpl::ResetAllChangeTracking() { | 2110 void LayerTreeImpl::ResetAllChangeTracking() { |
2111 layers_that_should_push_properties_.clear(); | 2111 layers_that_should_push_properties_.clear(); |
2112 // Iterate over all layers, including masks. | 2112 // Iterate over all layers, including masks. |
2113 for (auto& layer : *layers_) | 2113 for (auto& layer : *layers_) |
2114 layer->ResetChangeTracking(); | 2114 layer->ResetChangeTracking(); |
2115 property_trees_.ResetAllChangeTracking(); | 2115 property_trees_.ResetAllChangeTracking(); |
2116 } | 2116 } |
2117 | 2117 |
2118 } // namespace cc | 2118 } // namespace cc |
OLD | NEW |