| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 1617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1628 if (settings_.enable_surface_synchronization) { | 1628 if (settings_.enable_surface_synchronization) { |
| 1629 if (surface_layer_impl->fallback_surface_info().is_valid()) { | 1629 if (surface_layer_impl->fallback_surface_info().is_valid()) { |
| 1630 metadata.referenced_surfaces.push_back( | 1630 metadata.referenced_surfaces.push_back( |
| 1631 surface_layer_impl->fallback_surface_info().id()); | 1631 surface_layer_impl->fallback_surface_info().id()); |
| 1632 } | 1632 } |
| 1633 } else { | 1633 } else { |
| 1634 metadata.referenced_surfaces.push_back( | 1634 metadata.referenced_surfaces.push_back( |
| 1635 surface_layer_impl->primary_surface_info().id()); | 1635 surface_layer_impl->primary_surface_info().id()); |
| 1636 } | 1636 } |
| 1637 } | 1637 } |
| 1638 |
| 1639 for (auto* surface_id : *active_tree_->HiddenSurfaceLayerIds()) { |
| 1640 metadata.referenced_surfaces.push_back(*surface_id); |
| 1641 } |
| 1642 |
| 1638 if (!InnerViewportScrollLayer()) | 1643 if (!InnerViewportScrollLayer()) |
| 1639 return metadata; | 1644 return metadata; |
| 1640 | 1645 |
| 1641 metadata.root_overflow_x_hidden |= | 1646 metadata.root_overflow_x_hidden |= |
| 1642 !InnerViewportScrollLayer()->user_scrollable_horizontal(); | 1647 !InnerViewportScrollLayer()->user_scrollable_horizontal(); |
| 1643 metadata.root_overflow_y_hidden |= | 1648 metadata.root_overflow_y_hidden |= |
| 1644 !InnerViewportScrollLayer()->user_scrollable_vertical(); | 1649 !InnerViewportScrollLayer()->user_scrollable_vertical(); |
| 1645 | 1650 |
| 1646 // TODO(miletus) : Change the metadata to hold ScrollOffset. | 1651 // TODO(miletus) : Change the metadata to hold ScrollOffset. |
| 1647 metadata.root_scroll_offset = | 1652 metadata.root_scroll_offset = |
| (...skipping 2700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4348 | 4353 |
| 4349 void LayerTreeHostImpl::ShowScrollbarsForImplScroll(ElementId element_id) { | 4354 void LayerTreeHostImpl::ShowScrollbarsForImplScroll(ElementId element_id) { |
| 4350 if (!element_id) | 4355 if (!element_id) |
| 4351 return; | 4356 return; |
| 4352 if (ScrollbarAnimationController* animation_controller = | 4357 if (ScrollbarAnimationController* animation_controller = |
| 4353 ScrollbarAnimationControllerForElementId(element_id)) | 4358 ScrollbarAnimationControllerForElementId(element_id)) |
| 4354 animation_controller->DidScrollUpdate(); | 4359 animation_controller->DidScrollUpdate(); |
| 4355 } | 4360 } |
| 4356 | 4361 |
| 4357 } // namespace cc | 4362 } // namespace cc |
| OLD | NEW |