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

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

Issue 1805343006: cc: Impl thread scroll on ScrollNode instead of LayerImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolve comments Created 4 years, 9 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/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/property_tree.h » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_
6 #define CC_TREES_LAYER_TREE_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 void SetViewportSizeInvalid(); 317 void SetViewportSizeInvalid();
318 void ResetViewportSizeInvalid(); 318 void ResetViewportSizeInvalid();
319 319
320 // Used for accessing the task runner and debug assertions. 320 // Used for accessing the task runner and debug assertions.
321 TaskRunnerProvider* task_runner_provider() const; 321 TaskRunnerProvider* task_runner_provider() const;
322 322
323 // Distribute the root scroll between outer and inner viewport scroll layer. 323 // Distribute the root scroll between outer and inner viewport scroll layer.
324 // The outer viewport scroll layer scrolls first. 324 // The outer viewport scroll layer scrolls first.
325 bool DistributeRootScrollOffset(const gfx::ScrollOffset& root_offset); 325 bool DistributeRootScrollOffset(const gfx::ScrollOffset& root_offset);
326 326
327 void ApplyScroll(LayerImpl* layer, ScrollState* scroll_state) { 327 void ApplyScroll(ScrollNode* scroll_node, ScrollState* scroll_state) {
328 layer_tree_host_impl_->ApplyScroll(layer, scroll_state); 328 layer_tree_host_impl_->ApplyScroll(scroll_node, scroll_state);
329 } 329 }
330 330
331 // Call this function when you expect there to be a swap buffer. 331 // Call this function when you expect there to be a swap buffer.
332 // See swap_promise.h for how to use SwapPromise. 332 // See swap_promise.h for how to use SwapPromise.
333 // 333 //
334 // A swap promise queued by QueueSwapPromise travels with the layer 334 // A swap promise queued by QueueSwapPromise travels with the layer
335 // information currently associated with the tree. For example, when 335 // information currently associated with the tree. For example, when
336 // a pending tree is activated, the swap promise is passed to the 336 // a pending tree is activated, the swap promise is passed to the
337 // active tree along with the layer information. Similarly, when a 337 // active tree along with the layer information. Similarly, when a
338 // new activation overwrites layer information on the active tree, 338 // new activation overwrites layer information on the active tree,
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 580
581 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 581 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
582 582
583 private: 583 private:
584 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 584 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
585 }; 585 };
586 586
587 } // namespace cc 587 } // namespace cc
588 588
589 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 589 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/property_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698