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