| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_HOST_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 size_t limit_bytes, | 100 size_t limit_bytes, |
| 101 int priority_cutoff) = 0; | 101 int priority_cutoff) = 0; |
| 102 virtual bool IsInsideDraw() = 0; | 102 virtual bool IsInsideDraw() = 0; |
| 103 virtual void RenewTreePriority() = 0; | 103 virtual void RenewTreePriority() = 0; |
| 104 virtual void PostDelayedScrollbarFadeOnImplThread( | 104 virtual void PostDelayedScrollbarFadeOnImplThread( |
| 105 const base::Closure& start_fade, | 105 const base::Closure& start_fade, |
| 106 base::TimeDelta delay) = 0; | 106 base::TimeDelta delay) = 0; |
| 107 virtual void DidActivateSyncTree() = 0; | 107 virtual void DidActivateSyncTree() = 0; |
| 108 virtual void DidPrepareTiles() = 0; | 108 virtual void DidPrepareTiles() = 0; |
| 109 | 109 |
| 110 // Called when page scale animation has completed on the impl thread. |
| 111 virtual void DidCompletePageScaleAnimationOnImplThread() = 0; |
| 112 |
| 110 protected: | 113 protected: |
| 111 virtual ~LayerTreeHostImplClient() {} | 114 virtual ~LayerTreeHostImplClient() {} |
| 112 }; | 115 }; |
| 113 | 116 |
| 114 // LayerTreeHostImpl owns the LayerImpl trees as well as associated rendering | 117 // LayerTreeHostImpl owns the LayerImpl trees as well as associated rendering |
| 115 // state. | 118 // state. |
| 116 class CC_EXPORT LayerTreeHostImpl | 119 class CC_EXPORT LayerTreeHostImpl |
| 117 : public InputHandler, | 120 : public InputHandler, |
| 118 public RendererClient, | 121 public RendererClient, |
| 119 public TileManagerClient, | 122 public TileManagerClient, |
| (...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 | 729 |
| 727 bool requires_high_res_to_draw_; | 730 bool requires_high_res_to_draw_; |
| 728 bool required_for_draw_tile_is_top_of_raster_queue_; | 731 bool required_for_draw_tile_is_top_of_raster_queue_; |
| 729 | 732 |
| 730 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 733 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 731 }; | 734 }; |
| 732 | 735 |
| 733 } // namespace cc | 736 } // namespace cc |
| 734 | 737 |
| 735 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 738 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |