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