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_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 void DidInitializeOutputSurface(); | 140 void DidInitializeOutputSurface(); |
141 void DidFailToInitializeOutputSurface(); | 141 void DidFailToInitializeOutputSurface(); |
142 virtual std::unique_ptr<LayerTreeHostImpl> CreateLayerTreeHostImpl( | 142 virtual std::unique_ptr<LayerTreeHostImpl> CreateLayerTreeHostImpl( |
143 LayerTreeHostImplClient* client); | 143 LayerTreeHostImplClient* client); |
144 void DidLoseOutputSurface(); | 144 void DidLoseOutputSurface(); |
145 bool output_surface_lost() const { return output_surface_lost_; } | 145 bool output_surface_lost() const { return output_surface_lost_; } |
146 void DidCommitAndDrawFrame() { client_->DidCommitAndDrawFrame(); } | 146 void DidCommitAndDrawFrame() { client_->DidCommitAndDrawFrame(); } |
147 void DidCompleteSwapBuffers() { client_->DidCompleteSwapBuffers(); } | 147 void DidCompleteSwapBuffers() { client_->DidCompleteSwapBuffers(); } |
148 bool UpdateLayers(); | 148 bool UpdateLayers(); |
149 | 149 |
150 LayerListIterator<Layer> begin(); | 150 LayerListIterator<Layer> begin() const; |
151 LayerListIterator<Layer> end(); | 151 LayerListIterator<Layer> end() const; |
152 const LayerListIterator<Layer> begin() const; | |
153 const LayerListIterator<Layer> end() const; | |
154 LayerListReverseIterator<Layer> rbegin(); | 152 LayerListReverseIterator<Layer> rbegin(); |
155 LayerListReverseIterator<Layer> rend(); | 153 LayerListReverseIterator<Layer> rend(); |
156 | 154 |
157 // Called when the compositor completed page scale animation. | 155 // Called when the compositor completed page scale animation. |
158 void DidCompletePageScaleAnimation(); | 156 void DidCompletePageScaleAnimation(); |
159 | 157 |
160 LayerTreeHostClient* client() { return client_; } | 158 LayerTreeHostClient* client() { return client_; } |
161 const base::WeakPtr<InputHandler>& GetInputHandler() { | 159 const base::WeakPtr<InputHandler>& GetInputHandler() { |
162 return input_handler_weak_ptr_; | 160 return input_handler_weak_ptr_; |
163 } | 161 } |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
595 | 593 |
596 uint32_t surface_id_namespace_; | 594 uint32_t surface_id_namespace_; |
597 uint32_t next_surface_sequence_; | 595 uint32_t next_surface_sequence_; |
598 | 596 |
599 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 597 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
600 }; | 598 }; |
601 | 599 |
602 } // namespace cc | 600 } // namespace cc |
603 | 601 |
604 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 602 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |