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

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

Issue 2887053002: Remove scroll_clip_layer dependency from viewport layer tracking (Closed)
Patch Set: Cleanup return stmt 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/trees/layer_tree_host_unittest_scroll.cc ('k') | cc/trees/layer_tree_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 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 LayerImpl* InnerViewportContainerLayer() const; 211 LayerImpl* InnerViewportContainerLayer() const;
212 LayerImpl* OuterViewportContainerLayer() const; 212 LayerImpl* OuterViewportContainerLayer() const;
213 ScrollNode* CurrentlyScrollingNode(); 213 ScrollNode* CurrentlyScrollingNode();
214 const ScrollNode* CurrentlyScrollingNode() const; 214 const ScrollNode* CurrentlyScrollingNode() const;
215 int LastScrolledScrollNodeIndex() const; 215 int LastScrolledScrollNodeIndex() const;
216 void SetCurrentlyScrollingNode(ScrollNode* node); 216 void SetCurrentlyScrollingNode(ScrollNode* node);
217 void ClearCurrentlyScrollingNode(); 217 void ClearCurrentlyScrollingNode();
218 218
219 void SetViewportLayersFromIds(int overscroll_elasticity_layer, 219 void SetViewportLayersFromIds(int overscroll_elasticity_layer,
220 int page_scale_layer_id, 220 int page_scale_layer_id,
221 int inner_viewport_container_layer_id,
222 int outer_viewport_container_layer_id,
221 int inner_viewport_scroll_layer_id, 223 int inner_viewport_scroll_layer_id,
222 int outer_viewport_scroll_layer_id); 224 int outer_viewport_scroll_layer_id);
223 void ClearViewportLayers(); 225 void ClearViewportLayers();
224 LayerImpl* OverscrollElasticityLayer() { 226 LayerImpl* OverscrollElasticityLayer() {
225 return LayerById(overscroll_elasticity_layer_id_); 227 return LayerById(overscroll_elasticity_layer_id_);
226 } 228 }
227 LayerImpl* PageScaleLayer() { return LayerById(page_scale_layer_id_); } 229 LayerImpl* PageScaleLayer() { return LayerById(page_scale_layer_id_); }
228 void ApplySentScrollAndScaleDeltasFromAbortedCommit(); 230 void ApplySentScrollAndScaleDeltasFromAbortedCommit();
229 231
230 SkColor background_color() const { return background_color_; } 232 SkColor background_color() const { return background_color_; }
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 int is_first_frame_after_commit_tracker_; 522 int is_first_frame_after_commit_tracker_;
521 LayerImpl* root_layer_for_testing_; 523 LayerImpl* root_layer_for_testing_;
522 HeadsUpDisplayLayerImpl* hud_layer_; 524 HeadsUpDisplayLayerImpl* hud_layer_;
523 PropertyTrees property_trees_; 525 PropertyTrees property_trees_;
524 SkColor background_color_; 526 SkColor background_color_;
525 bool has_transparent_background_; 527 bool has_transparent_background_;
526 528
527 int last_scrolled_scroll_node_index_; 529 int last_scrolled_scroll_node_index_;
528 int overscroll_elasticity_layer_id_; 530 int overscroll_elasticity_layer_id_;
529 int page_scale_layer_id_; 531 int page_scale_layer_id_;
532
533 int inner_viewport_container_layer_id_;
534 int outer_viewport_container_layer_id_;
535
530 int inner_viewport_scroll_layer_id_; 536 int inner_viewport_scroll_layer_id_;
531 int outer_viewport_scroll_layer_id_; 537 int outer_viewport_scroll_layer_id_;
532 538
533 LayerSelection selection_; 539 LayerSelection selection_;
534 540
535 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor_; 541 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor_;
536 float min_page_scale_factor_; 542 float min_page_scale_factor_;
537 float max_page_scale_factor_; 543 float max_page_scale_factor_;
538 544
539 float device_scale_factor_; 545 float device_scale_factor_;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 // lifecycle states. See: |LayerTreeLifecycle|. 626 // lifecycle states. See: |LayerTreeLifecycle|.
621 LayerTreeLifecycle lifecycle_; 627 LayerTreeLifecycle lifecycle_;
622 628
623 private: 629 private:
624 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 630 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
625 }; 631 };
626 632
627 } // namespace cc 633 } // namespace cc
628 634
629 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 635 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest_scroll.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698