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 1238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1249 } | 1249 } |
1250 | 1250 |
1251 gfx::Rect LayerTreeImpl::DeviceViewport() const { | 1251 gfx::Rect LayerTreeImpl::DeviceViewport() const { |
1252 return layer_tree_host_impl_->DeviceViewport(); | 1252 return layer_tree_host_impl_->DeviceViewport(); |
1253 } | 1253 } |
1254 | 1254 |
1255 gfx::Size LayerTreeImpl::DrawViewportSize() const { | 1255 gfx::Size LayerTreeImpl::DrawViewportSize() const { |
1256 return layer_tree_host_impl_->DrawViewportSize(); | 1256 return layer_tree_host_impl_->DrawViewportSize(); |
1257 } | 1257 } |
1258 | 1258 |
1259 const gfx::Rect LayerTreeImpl::ViewportRectForTilePriority() const { | 1259 gfx::Size LayerTreeImpl::GetStableScreenSize() const { |
| 1260 return layer_tree_host_impl_->GetStableScreenSize(this); |
| 1261 } |
| 1262 |
| 1263 gfx::Rect LayerTreeImpl::ViewportRectForTilePriority() const { |
1260 return layer_tree_host_impl_->ViewportRectForTilePriority(); | 1264 return layer_tree_host_impl_->ViewportRectForTilePriority(); |
1261 } | 1265 } |
1262 | 1266 |
1263 std::unique_ptr<ScrollbarAnimationController> | 1267 std::unique_ptr<ScrollbarAnimationController> |
1264 LayerTreeImpl::CreateScrollbarAnimationController(int scroll_layer_id) { | 1268 LayerTreeImpl::CreateScrollbarAnimationController(int scroll_layer_id) { |
1265 DCHECK(settings().scrollbar_fade_delay_ms); | 1269 DCHECK(settings().scrollbar_fade_delay_ms); |
1266 DCHECK(settings().scrollbar_fade_duration_ms); | 1270 DCHECK(settings().scrollbar_fade_duration_ms); |
1267 base::TimeDelta delay = | 1271 base::TimeDelta delay = |
1268 base::TimeDelta::FromMilliseconds(settings().scrollbar_fade_delay_ms); | 1272 base::TimeDelta::FromMilliseconds(settings().scrollbar_fade_delay_ms); |
1269 base::TimeDelta resize_delay = base::TimeDelta::FromMilliseconds( | 1273 base::TimeDelta resize_delay = base::TimeDelta::FromMilliseconds( |
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2087 | 2091 |
2088 void LayerTreeImpl::ResetAllChangeTracking() { | 2092 void LayerTreeImpl::ResetAllChangeTracking() { |
2089 layers_that_should_push_properties_.clear(); | 2093 layers_that_should_push_properties_.clear(); |
2090 // Iterate over all layers, including masks and replicas. | 2094 // Iterate over all layers, including masks and replicas. |
2091 for (auto& layer : *layers_) | 2095 for (auto& layer : *layers_) |
2092 layer->ResetChangeTracking(); | 2096 layer->ResetChangeTracking(); |
2093 property_trees_.ResetAllChangeTracking(); | 2097 property_trees_.ResetAllChangeTracking(); |
2094 } | 2098 } |
2095 | 2099 |
2096 } // namespace cc | 2100 } // namespace cc |
OLD | NEW |