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