| 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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 | 461 |
| 462 void ResetAllChangeTracking(); | 462 void ResetAllChangeTracking(); |
| 463 | 463 |
| 464 void AddToLayerList(LayerImpl* layer); | 464 void AddToLayerList(LayerImpl* layer); |
| 465 | 465 |
| 466 void ClearLayerList(); | 466 void ClearLayerList(); |
| 467 | 467 |
| 468 void BuildLayerListForTesting(); | 468 void BuildLayerListForTesting(); |
| 469 void HandleScrollbarShowRequestsFromMain(); | 469 void HandleScrollbarShowRequestsFromMain(); |
| 470 | 470 |
| 471 void InvalidateRegionForImages(const ImageIdFlatSet& images_to_invalidate); | 471 void InvalidateRegionForImages( |
| 472 const PaintImageIdFlatSet& images_to_invalidate); |
| 472 | 473 |
| 473 protected: | 474 protected: |
| 474 float ClampPageScaleFactorToLimits(float page_scale_factor) const; | 475 float ClampPageScaleFactorToLimits(float page_scale_factor) const; |
| 475 void PushPageScaleFactorAndLimits(const float* page_scale_factor, | 476 void PushPageScaleFactorAndLimits(const float* page_scale_factor, |
| 476 float min_page_scale_factor, | 477 float min_page_scale_factor, |
| 477 float max_page_scale_factor); | 478 float max_page_scale_factor); |
| 478 bool SetPageScaleFactorLimits(float min_page_scale_factor, | 479 bool SetPageScaleFactorLimits(float min_page_scale_factor, |
| 479 float max_page_scale_factor); | 480 float max_page_scale_factor); |
| 480 bool IsViewportLayerId(int id) const; | 481 bool IsViewportLayerId(int id) const; |
| 481 void UpdateScrollbars(int scroll_layer_id, int clip_layer_id); | 482 void UpdateScrollbars(int scroll_layer_id, int clip_layer_id); |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 584 | 585 |
| 585 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 586 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 586 | 587 |
| 587 private: | 588 private: |
| 588 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 589 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 589 }; | 590 }; |
| 590 | 591 |
| 591 } // namespace cc | 592 } // namespace cc |
| 592 | 593 |
| 593 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 594 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |