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_host_impl.h" | 5 #include "cc/trees/layer_tree_host_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 1284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1295 metadata.viewport_size = active_tree_->ScrollableViewportSize(); | 1295 metadata.viewport_size = active_tree_->ScrollableViewportSize(); |
1296 metadata.root_layer_size = active_tree_->ScrollableSize(); | 1296 metadata.root_layer_size = active_tree_->ScrollableSize(); |
1297 metadata.min_page_scale_factor = active_tree_->min_page_scale_factor(); | 1297 metadata.min_page_scale_factor = active_tree_->min_page_scale_factor(); |
1298 metadata.max_page_scale_factor = active_tree_->max_page_scale_factor(); | 1298 metadata.max_page_scale_factor = active_tree_->max_page_scale_factor(); |
1299 if (top_controls_manager_) { | 1299 if (top_controls_manager_) { |
1300 metadata.location_bar_offset = | 1300 metadata.location_bar_offset = |
1301 gfx::Vector2dF(0.f, top_controls_manager_->controls_top_offset()); | 1301 gfx::Vector2dF(0.f, top_controls_manager_->controls_top_offset()); |
1302 metadata.location_bar_content_translation = | 1302 metadata.location_bar_content_translation = |
1303 gfx::Vector2dF(0.f, top_controls_manager_->content_top_offset()); | 1303 gfx::Vector2dF(0.f, top_controls_manager_->content_top_offset()); |
1304 metadata.overdraw_bottom_height = overdraw_bottom_height_; | 1304 metadata.overdraw_bottom_height = overdraw_bottom_height_; |
| 1305 metadata.allow_delayed_resize = |
| 1306 !active_tree_->has_fixed_to_bottom_edge_layer(); |
1305 } | 1307 } |
1306 | 1308 |
1307 if (!RootScrollLayer()) | 1309 if (!RootScrollLayer()) |
1308 return metadata; | 1310 return metadata; |
1309 | 1311 |
1310 metadata.root_scroll_offset = RootScrollLayer()->TotalScrollOffset(); | 1312 metadata.root_scroll_offset = RootScrollLayer()->TotalScrollOffset(); |
1311 | 1313 |
1312 return metadata; | 1314 return metadata; |
1313 } | 1315 } |
1314 | 1316 |
(...skipping 1606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2921 swap_promise_monitor_.erase(monitor); | 2923 swap_promise_monitor_.erase(monitor); |
2922 } | 2924 } |
2923 | 2925 |
2924 void LayerTreeHostImpl::NotifySwapPromiseMonitorsOfSetNeedsRedraw() { | 2926 void LayerTreeHostImpl::NotifySwapPromiseMonitorsOfSetNeedsRedraw() { |
2925 std::set<SwapPromiseMonitor*>::iterator it = swap_promise_monitor_.begin(); | 2927 std::set<SwapPromiseMonitor*>::iterator it = swap_promise_monitor_.begin(); |
2926 for (; it != swap_promise_monitor_.end(); it++) | 2928 for (; it != swap_promise_monitor_.end(); it++) |
2927 (*it)->OnSetNeedsRedrawOnImpl(); | 2929 (*it)->OnSetNeedsRedrawOnImpl(); |
2928 } | 2930 } |
2929 | 2931 |
2930 } // namespace cc | 2932 } // namespace cc |
OLD | NEW |