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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 } | 447 } |
448 | 448 |
449 void ResetAllChangeTracking(); | 449 void ResetAllChangeTracking(); |
450 | 450 |
451 void AddToLayerList(LayerImpl* layer); | 451 void AddToLayerList(LayerImpl* layer); |
452 | 452 |
453 void ClearLayerList(); | 453 void ClearLayerList(); |
454 | 454 |
455 void BuildLayerListForTesting(); | 455 void BuildLayerListForTesting(); |
456 | 456 |
| 457 void InvalidateRegionForImages(const ImageIdFlatSet& images_to_invalidate); |
| 458 |
457 protected: | 459 protected: |
458 float ClampPageScaleFactorToLimits(float page_scale_factor) const; | 460 float ClampPageScaleFactorToLimits(float page_scale_factor) const; |
459 void PushPageScaleFactorAndLimits(const float* page_scale_factor, | 461 void PushPageScaleFactorAndLimits(const float* page_scale_factor, |
460 float min_page_scale_factor, | 462 float min_page_scale_factor, |
461 float max_page_scale_factor); | 463 float max_page_scale_factor); |
462 bool SetPageScaleFactorLimits(float min_page_scale_factor, | 464 bool SetPageScaleFactorLimits(float min_page_scale_factor, |
463 float max_page_scale_factor); | 465 float max_page_scale_factor); |
464 bool IsViewportLayerId(int id) const; | 466 bool IsViewportLayerId(int id) const; |
465 void UpdateScrollbars(int scroll_layer_id, int clip_layer_id); | 467 void UpdateScrollbars(int scroll_layer_id, int clip_layer_id); |
466 void DidUpdatePageScale(); | 468 void DidUpdatePageScale(); |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 | 562 |
561 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 563 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
562 | 564 |
563 private: | 565 private: |
564 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 566 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
565 }; | 567 }; |
566 | 568 |
567 } // namespace cc | 569 } // namespace cc |
568 | 570 |
569 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 571 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |