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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <bitset> | 10 #include <bitset> |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 virtual void DidPrepareTiles() = 0; | 120 virtual void DidPrepareTiles() = 0; |
121 | 121 |
122 // Called when page scale animation has completed on the impl thread. | 122 // Called when page scale animation has completed on the impl thread. |
123 virtual void DidCompletePageScaleAnimationOnImplThread() = 0; | 123 virtual void DidCompletePageScaleAnimationOnImplThread() = 0; |
124 | 124 |
125 // Called when output surface asks for a draw. | 125 // Called when output surface asks for a draw. |
126 virtual void OnDrawForCompositorFrameSink( | 126 virtual void OnDrawForCompositorFrameSink( |
127 bool resourceless_software_draw) = 0; | 127 bool resourceless_software_draw) = 0; |
128 | 128 |
129 virtual void NeedsImplSideInvalidation() = 0; | 129 virtual void NeedsImplSideInvalidation() = 0; |
| 130 // Called when a requested image decode completes. |
| 131 virtual void NotifyImageDecodeRequestFinished() = 0; |
130 | 132 |
131 protected: | 133 protected: |
132 virtual ~LayerTreeHostImplClient() {} | 134 virtual ~LayerTreeHostImplClient() {} |
133 }; | 135 }; |
134 | 136 |
135 // LayerTreeHostImpl owns the LayerImpl trees as well as associated rendering | 137 // LayerTreeHostImpl owns the LayerImpl trees as well as associated rendering |
136 // state. | 138 // state. |
137 class CC_EXPORT LayerTreeHostImpl | 139 class CC_EXPORT LayerTreeHostImpl |
138 : public InputHandler, | 140 : public InputHandler, |
139 public TileManagerClient, | 141 public TileManagerClient, |
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
872 bool touchpad_and_wheel_scroll_latching_enabled_; | 874 bool touchpad_and_wheel_scroll_latching_enabled_; |
873 | 875 |
874 ImplThreadPhase impl_thread_phase_; | 876 ImplThreadPhase impl_thread_phase_; |
875 | 877 |
876 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 878 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
877 }; | 879 }; |
878 | 880 |
879 } // namespace cc | 881 } // namespace cc |
880 | 882 |
881 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 883 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |