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

Unified Diff: cc/input/scroll_state.h

Issue 2713713002: Reconstitute const-ref parameter to set_scroll_chain_and_layer_tree (Closed)
Patch Set: Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/input/scroll_state.h
diff --git a/cc/input/scroll_state.h b/cc/input/scroll_state.h
index 6df0b74af53b9fa3ee8807757291f0e3be575e9c..384a934fc22f55b57d97a58dc1e666ae719b94e1 100644
--- a/cc/input/scroll_state.h
+++ b/cc/input/scroll_state.h
@@ -61,10 +61,11 @@ class CC_EXPORT ScrollState {
data_.is_direct_manipulation = is_direct_manipulation;
}
- void set_scroll_chain_and_layer_tree(std::list<ScrollNode*>* scroll_chain,
- LayerTreeImpl* layer_tree_impl) {
+ void set_scroll_chain_and_layer_tree(
+ const std::list<ScrollNode*>& scroll_chain,
+ LayerTreeImpl* layer_tree_impl) {
layer_tree_impl_ = layer_tree_impl;
- scroll_chain_ = *scroll_chain;
+ scroll_chain_ = scroll_chain;
}
void set_current_native_scrolling_node(ScrollNode* scroll_node) {
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698