| 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 1249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1260 } | 1260 } |
| 1261 | 1261 |
| 1262 const LayerTreeSettings& LayerTreeImpl::settings() const { | 1262 const LayerTreeSettings& LayerTreeImpl::settings() const { |
| 1263 return layer_tree_host_impl_->settings(); | 1263 return layer_tree_host_impl_->settings(); |
| 1264 } | 1264 } |
| 1265 | 1265 |
| 1266 const LayerTreeDebugState& LayerTreeImpl::debug_state() const { | 1266 const LayerTreeDebugState& LayerTreeImpl::debug_state() const { |
| 1267 return layer_tree_host_impl_->debug_state(); | 1267 return layer_tree_host_impl_->debug_state(); |
| 1268 } | 1268 } |
| 1269 | 1269 |
| 1270 const RendererCapabilitiesImpl& LayerTreeImpl::GetRendererCapabilities() const { | |
| 1271 return layer_tree_host_impl_->GetRendererCapabilities(); | |
| 1272 } | |
| 1273 | |
| 1274 ContextProvider* LayerTreeImpl::context_provider() const { | 1270 ContextProvider* LayerTreeImpl::context_provider() const { |
| 1275 return output_surface()->context_provider(); | 1271 return output_surface()->context_provider(); |
| 1276 } | 1272 } |
| 1277 | 1273 |
| 1278 OutputSurface* LayerTreeImpl::output_surface() const { | 1274 OutputSurface* LayerTreeImpl::output_surface() const { |
| 1279 return layer_tree_host_impl_->output_surface(); | 1275 return layer_tree_host_impl_->output_surface(); |
| 1280 } | 1276 } |
| 1281 | 1277 |
| 1282 ResourceProvider* LayerTreeImpl::resource_provider() const { | 1278 ResourceProvider* LayerTreeImpl::resource_provider() const { |
| 1283 return layer_tree_host_impl_->resource_provider(); | 1279 return layer_tree_host_impl_->resource_provider(); |
| (...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2081 | 2077 |
| 2082 void LayerTreeImpl::ResetAllChangeTracking() { | 2078 void LayerTreeImpl::ResetAllChangeTracking() { |
| 2083 layers_that_should_push_properties_.clear(); | 2079 layers_that_should_push_properties_.clear(); |
| 2084 // Iterate over all layers, including masks and replicas. | 2080 // Iterate over all layers, including masks and replicas. |
| 2085 for (auto& layer : *layers_) | 2081 for (auto& layer : *layers_) |
| 2086 layer->ResetChangeTracking(); | 2082 layer->ResetChangeTracking(); |
| 2087 property_trees_.ResetAllChangeTracking(); | 2083 property_trees_.ResetAllChangeTracking(); |
| 2088 } | 2084 } |
| 2089 | 2085 |
| 2090 } // namespace cc | 2086 } // namespace cc |
| OLD | NEW |