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

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

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 unified diff | Download patch
« no previous file with comments | « cc/input/scroll_state.h ('k') | no next file » | 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 #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 3104 matching lines...) Expand 10 before | Expand all | Expand 10 after
3115 current_scroll_chain.push_front(viewport_scroll_node); 3115 current_scroll_chain.push_front(viewport_scroll_node);
3116 break; 3116 break;
3117 } 3117 }
3118 3118
3119 if (!scroll_node->scrollable) 3119 if (!scroll_node->scrollable)
3120 continue; 3120 continue;
3121 3121
3122 current_scroll_chain.push_front(scroll_node); 3122 current_scroll_chain.push_front(scroll_node);
3123 } 3123 }
3124 } 3124 }
3125 scroll_state->set_scroll_chain_and_layer_tree(&current_scroll_chain, 3125 scroll_state->set_scroll_chain_and_layer_tree(current_scroll_chain,
3126 active_tree()); 3126 active_tree());
3127 scroll_state->DistributeToScrollChainDescendant(); 3127 scroll_state->DistributeToScrollChainDescendant();
3128 } 3128 }
3129 3129
3130 InputHandlerScrollResult LayerTreeHostImpl::ScrollBy( 3130 InputHandlerScrollResult LayerTreeHostImpl::ScrollBy(
3131 ScrollState* scroll_state) { 3131 ScrollState* scroll_state) {
3132 DCHECK(scroll_state); 3132 DCHECK(scroll_state);
3133 3133
3134 TRACE_EVENT0("cc", "LayerTreeHostImpl::ScrollBy"); 3134 TRACE_EVENT0("cc", "LayerTreeHostImpl::ScrollBy");
3135 if (!CurrentlyScrollingLayer()) 3135 if (!CurrentlyScrollingLayer())
(...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after
4130 worker_context_visibility_ = 4130 worker_context_visibility_ =
4131 worker_context->CacheController()->ClientBecameVisible(); 4131 worker_context->CacheController()->ClientBecameVisible();
4132 } else { 4132 } else {
4133 worker_context->CacheController()->ClientBecameNotVisible( 4133 worker_context->CacheController()->ClientBecameNotVisible(
4134 std::move(worker_context_visibility_)); 4134 std::move(worker_context_visibility_));
4135 } 4135 }
4136 } 4136 }
4137 } 4137 }
4138 4138
4139 } // namespace cc 4139 } // namespace cc
OLDNEW
« no previous file with comments | « cc/input/scroll_state.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698