| 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 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 property_trees_.UpdateChangeTracking(); | 490 property_trees_.UpdateChangeTracking(); |
| 491 for (auto* layer : *this) { | 491 for (auto* layer : *this) { |
| 492 if (layer->LayerPropertyChanged()) | 492 if (layer->LayerPropertyChanged()) |
| 493 layer->NoteLayerPropertyChanged(); | 493 layer->NoteLayerPropertyChanged(); |
| 494 if (layer->render_surface() && | 494 if (layer->render_surface() && |
| 495 layer->render_surface()->AncestorPropertyChanged()) | 495 layer->render_surface()->AncestorPropertyChanged()) |
| 496 layer->render_surface()->NoteAncestorPropertyChanged(); | 496 layer->render_surface()->NoteAncestorPropertyChanged(); |
| 497 } | 497 } |
| 498 } | 498 } |
| 499 | 499 |
| 500 void LayerTreeImpl::ForceRecalculateRasterScales() { |
| 501 for (auto* layer : picture_layers_) |
| 502 layer->ResetRasterScale(); |
| 503 } |
| 504 |
| 500 LayerImplList::const_iterator LayerTreeImpl::begin() const { | 505 LayerImplList::const_iterator LayerTreeImpl::begin() const { |
| 501 return layer_list_.cbegin(); | 506 return layer_list_.cbegin(); |
| 502 } | 507 } |
| 503 | 508 |
| 504 LayerImplList::const_iterator LayerTreeImpl::end() const { | 509 LayerImplList::const_iterator LayerTreeImpl::end() const { |
| 505 return layer_list_.cend(); | 510 return layer_list_.cend(); |
| 506 } | 511 } |
| 507 | 512 |
| 508 LayerImplList::reverse_iterator LayerTreeImpl::rbegin() { | 513 LayerImplList::reverse_iterator LayerTreeImpl::rbegin() { |
| 509 return layer_list_.rbegin(); | 514 return layer_list_.rbegin(); |
| (...skipping 1562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2072 | 2077 |
| 2073 void LayerTreeImpl::ResetAllChangeTracking() { | 2078 void LayerTreeImpl::ResetAllChangeTracking() { |
| 2074 layers_that_should_push_properties_.clear(); | 2079 layers_that_should_push_properties_.clear(); |
| 2075 // Iterate over all layers, including masks. | 2080 // Iterate over all layers, including masks. |
| 2076 for (auto& layer : *layers_) | 2081 for (auto& layer : *layers_) |
| 2077 layer->ResetChangeTracking(); | 2082 layer->ResetChangeTracking(); |
| 2078 property_trees_.ResetAllChangeTracking(); | 2083 property_trees_.ResetAllChangeTracking(); |
| 2079 } | 2084 } |
| 2080 | 2085 |
| 2081 } // namespace cc | 2086 } // namespace cc |
| OLD | NEW |