OLD | NEW |
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 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 event_properties; | 458 event_properties; |
459 } | 459 } |
460 | 460 |
461 void ResetAllChangeTracking(); | 461 void ResetAllChangeTracking(); |
462 | 462 |
463 void AddToLayerList(LayerImpl* layer); | 463 void AddToLayerList(LayerImpl* layer); |
464 | 464 |
465 void ClearLayerList(); | 465 void ClearLayerList(); |
466 | 466 |
467 void BuildLayerListForTesting(); | 467 void BuildLayerListForTesting(); |
| 468 void ShowScrollbars(); |
468 | 469 |
469 void InvalidateRegionForImages(const ImageIdFlatSet& images_to_invalidate); | 470 void InvalidateRegionForImages(const ImageIdFlatSet& images_to_invalidate); |
470 | 471 |
471 protected: | 472 protected: |
472 float ClampPageScaleFactorToLimits(float page_scale_factor) const; | 473 float ClampPageScaleFactorToLimits(float page_scale_factor) const; |
473 void PushPageScaleFactorAndLimits(const float* page_scale_factor, | 474 void PushPageScaleFactorAndLimits(const float* page_scale_factor, |
474 float min_page_scale_factor, | 475 float min_page_scale_factor, |
475 float max_page_scale_factor); | 476 float max_page_scale_factor); |
476 bool SetPageScaleFactorLimits(float min_page_scale_factor, | 477 bool SetPageScaleFactorLimits(float min_page_scale_factor, |
477 float max_page_scale_factor); | 478 float max_page_scale_factor); |
478 bool IsViewportLayerId(int id) const; | 479 bool IsViewportLayerId(int id) const; |
479 void UpdateScrollbars(int scroll_layer_id, int clip_layer_id); | 480 void UpdateScrollbars(int scroll_layer_id, int clip_layer_id); |
480 void ShowScrollbars(); | |
481 void DidUpdatePageScale(); | 481 void DidUpdatePageScale(); |
482 void PushBrowserControls(const float* top_controls_shown_ratio); | 482 void PushBrowserControls(const float* top_controls_shown_ratio); |
483 bool ClampBrowserControlsShownRatio(); | 483 bool ClampBrowserControlsShownRatio(); |
484 | 484 |
485 LayerTreeHostImpl* layer_tree_host_impl_; | 485 LayerTreeHostImpl* layer_tree_host_impl_; |
486 int source_frame_number_; | 486 int source_frame_number_; |
487 int is_first_frame_after_commit_tracker_; | 487 int is_first_frame_after_commit_tracker_; |
488 LayerImpl* root_layer_for_testing_; | 488 LayerImpl* root_layer_for_testing_; |
489 HeadsUpDisplayLayerImpl* hud_layer_; | 489 HeadsUpDisplayLayerImpl* hud_layer_; |
490 PropertyTrees property_trees_; | 490 PropertyTrees property_trees_; |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 | 583 |
584 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 584 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
585 | 585 |
586 private: | 586 private: |
587 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 587 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
588 }; | 588 }; |
589 | 589 |
590 } // namespace cc | 590 } // namespace cc |
591 | 591 |
592 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 592 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |