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

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

Issue 1840883002: cc : Calculate jitter without using layer hierarchy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 186
187 LayerImpl* InnerViewportScrollLayer() const; 187 LayerImpl* InnerViewportScrollLayer() const;
188 // This function may return NULL, it is the caller's responsibility to check. 188 // This function may return NULL, it is the caller's responsibility to check.
189 LayerImpl* OuterViewportScrollLayer() const; 189 LayerImpl* OuterViewportScrollLayer() const;
190 gfx::ScrollOffset TotalScrollOffset() const; 190 gfx::ScrollOffset TotalScrollOffset() const;
191 gfx::ScrollOffset TotalMaxScrollOffset() const; 191 gfx::ScrollOffset TotalMaxScrollOffset() const;
192 192
193 LayerImpl* InnerViewportContainerLayer() const; 193 LayerImpl* InnerViewportContainerLayer() const;
194 LayerImpl* OuterViewportContainerLayer() const; 194 LayerImpl* OuterViewportContainerLayer() const;
195 LayerImpl* CurrentlyScrollingLayer() const; 195 LayerImpl* CurrentlyScrollingLayer() const;
196 int LastScrolledLayerId() const; 196 int LastScrolledScrollNodeId() const;
197 void SetCurrentlyScrollingLayer(LayerImpl* layer); 197 void SetCurrentlyScrollingLayer(LayerImpl* layer);
198 void ClearCurrentlyScrollingLayer(); 198 void ClearCurrentlyScrollingLayer();
199 199
200 void SetViewportLayersFromIds(int overscroll_elasticity_layer, 200 void SetViewportLayersFromIds(int overscroll_elasticity_layer,
201 int page_scale_layer_id, 201 int page_scale_layer_id,
202 int inner_viewport_scroll_layer_id, 202 int inner_viewport_scroll_layer_id,
203 int outer_viewport_scroll_layer_id); 203 int outer_viewport_scroll_layer_id);
204 void ClearViewportLayers(); 204 void ClearViewportLayers();
205 LayerImpl* OverscrollElasticityLayer() { 205 LayerImpl* OverscrollElasticityLayer() {
206 return LayerById(overscroll_elasticity_layer_id_); 206 return LayerById(overscroll_elasticity_layer_id_);
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 void PushTopControls(const float* top_controls_shown_ratio); 503 void PushTopControls(const float* top_controls_shown_ratio);
504 LayerTreeHostImpl* layer_tree_host_impl_; 504 LayerTreeHostImpl* layer_tree_host_impl_;
505 int source_frame_number_; 505 int source_frame_number_;
506 int is_first_frame_after_commit_tracker_; 506 int is_first_frame_after_commit_tracker_;
507 LayerImpl* root_layer_; 507 LayerImpl* root_layer_;
508 HeadsUpDisplayLayerImpl* hud_layer_; 508 HeadsUpDisplayLayerImpl* hud_layer_;
509 PropertyTrees property_trees_; 509 PropertyTrees property_trees_;
510 SkColor background_color_; 510 SkColor background_color_;
511 bool has_transparent_background_; 511 bool has_transparent_background_;
512 512
513 int last_scrolled_layer_id_; 513 int last_scrolled_scroll_node_id_;
ajuma 2016/03/29 14:24:02 We already have a currently_scrolling_node_id on t
jaydasika 2016/03/29 15:57:24 I think we need this as the one on scroll tree is
ajuma 2016/03/29 16:52:07 Ah, makes sense. Does this need to get updated on
jaydasika 2016/03/29 18:30:19 It gets updated every activation here : https://co
ajuma 2016/03/29 18:50:04 When the layer passed to SetCurrentlyScrollingLaye
514 int overscroll_elasticity_layer_id_; 514 int overscroll_elasticity_layer_id_;
515 int page_scale_layer_id_; 515 int page_scale_layer_id_;
516 int inner_viewport_scroll_layer_id_; 516 int inner_viewport_scroll_layer_id_;
517 int outer_viewport_scroll_layer_id_; 517 int outer_viewport_scroll_layer_id_;
518 518
519 LayerSelection selection_; 519 LayerSelection selection_;
520 520
521 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor_; 521 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor_;
522 float min_page_scale_factor_; 522 float min_page_scale_factor_;
523 float max_page_scale_factor_; 523 float max_page_scale_factor_;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 588
589 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 589 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
590 590
591 private: 591 private:
592 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 592 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
593 }; 593 };
594 594
595 } // namespace cc 595 } // namespace cc
596 596
597 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 597 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698