| 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 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <bitset> | 10 #include <bitset> |
| (...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 702 | 702 |
| 703 // This function keeps track of sources of scrolls that are handled in the | 703 // This function keeps track of sources of scrolls that are handled in the |
| 704 // compositor side. The information gets shared by the main thread as part of | 704 // compositor side. The information gets shared by the main thread as part of |
| 705 // the begin_main_frame_state. Finally Use counters are updated in the main | 705 // the begin_main_frame_state. Finally Use counters are updated in the main |
| 706 // thread side to keep track of the frequency of scrolling with different | 706 // thread side to keep track of the frequency of scrolling with different |
| 707 // sources per page load. TODO(crbug.com/691886): Use GRC API to plumb the | 707 // sources per page load. TODO(crbug.com/691886): Use GRC API to plumb the |
| 708 // scroll source info for Use Counters. | 708 // scroll source info for Use Counters. |
| 709 void UpdateScrollSourceInfo(bool is_wheel_scroll); | 709 void UpdateScrollSourceInfo(bool is_wheel_scroll); |
| 710 | 710 |
| 711 bool IsScrolledBy(LayerImpl* child, ScrollNode* ancestor); | 711 bool IsScrolledBy(LayerImpl* child, ScrollNode* ancestor); |
| 712 void ShowScrollbarsForImplScroll(ElementId element_id); |
| 712 | 713 |
| 713 using UIResourceMap = std::unordered_map<UIResourceId, UIResourceData>; | 714 using UIResourceMap = std::unordered_map<UIResourceId, UIResourceData>; |
| 714 UIResourceMap ui_resource_map_; | 715 UIResourceMap ui_resource_map_; |
| 715 | 716 |
| 716 // Resources that were evicted by EvictAllUIResources. Resources are removed | 717 // Resources that were evicted by EvictAllUIResources. Resources are removed |
| 717 // from this when they are touched by a create or destroy from the UI resource | 718 // from this when they are touched by a create or destroy from the UI resource |
| 718 // request queue. | 719 // request queue. |
| 719 std::set<UIResourceId> evicted_ui_resources_; | 720 std::set<UIResourceId> evicted_ui_resources_; |
| 720 | 721 |
| 721 CompositorFrameSink* compositor_frame_sink_; | 722 CompositorFrameSink* compositor_frame_sink_; |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 869 bool has_scrolled_by_touch_; | 870 bool has_scrolled_by_touch_; |
| 870 | 871 |
| 871 bool touchpad_and_wheel_scroll_latching_enabled_; | 872 bool touchpad_and_wheel_scroll_latching_enabled_; |
| 872 | 873 |
| 873 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 874 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 874 }; | 875 }; |
| 875 | 876 |
| 876 } // namespace cc | 877 } // namespace cc |
| 877 | 878 |
| 878 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 879 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |