Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: cc/trees/layer_tree_host_impl.h

Issue 2842553003: Call SAC::DidScrollUpdate only for compositor-triggered scrolls. (Closed)
Patch Set: rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/layers/scrollbar_layer_unittest.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « cc/layers/scrollbar_layer_unittest.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698