| 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 13 matching lines...) Expand all Loading... |
| 24 #include "cc/base/cc_export.h" | 24 #include "cc/base/cc_export.h" |
| 25 #include "cc/debug/frame_timing_tracker.h" | 25 #include "cc/debug/frame_timing_tracker.h" |
| 26 #include "cc/debug/micro_benchmark.h" | 26 #include "cc/debug/micro_benchmark.h" |
| 27 #include "cc/debug/micro_benchmark_controller.h" | 27 #include "cc/debug/micro_benchmark_controller.h" |
| 28 #include "cc/input/event_listener_properties.h" | 28 #include "cc/input/event_listener_properties.h" |
| 29 #include "cc/input/input_handler.h" | 29 #include "cc/input/input_handler.h" |
| 30 #include "cc/input/layer_selection_bound.h" | 30 #include "cc/input/layer_selection_bound.h" |
| 31 #include "cc/input/scrollbar.h" | 31 #include "cc/input/scrollbar.h" |
| 32 #include "cc/input/top_controls_state.h" | 32 #include "cc/input/top_controls_state.h" |
| 33 #include "cc/layers/layer_collections.h" | 33 #include "cc/layers/layer_collections.h" |
| 34 #include "cc/layers/layer_list_iterator.h" |
| 34 #include "cc/output/output_surface.h" | 35 #include "cc/output/output_surface.h" |
| 35 #include "cc/output/renderer_capabilities.h" | 36 #include "cc/output/renderer_capabilities.h" |
| 36 #include "cc/output/swap_promise.h" | 37 #include "cc/output/swap_promise.h" |
| 37 #include "cc/resources/resource_format.h" | 38 #include "cc/resources/resource_format.h" |
| 38 #include "cc/resources/scoped_ui_resource.h" | 39 #include "cc/resources/scoped_ui_resource.h" |
| 39 #include "cc/surfaces/surface_sequence.h" | 40 #include "cc/surfaces/surface_sequence.h" |
| 40 #include "cc/trees/compositor_mode.h" | 41 #include "cc/trees/compositor_mode.h" |
| 41 #include "cc/trees/layer_tree_host_client.h" | 42 #include "cc/trees/layer_tree_host_client.h" |
| 42 #include "cc/trees/layer_tree_settings.h" | 43 #include "cc/trees/layer_tree_settings.h" |
| 43 #include "cc/trees/mutator_host_client.h" | 44 #include "cc/trees/mutator_host_client.h" |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 void DidInitializeOutputSurface(); | 142 void DidInitializeOutputSurface(); |
| 142 void DidFailToInitializeOutputSurface(); | 143 void DidFailToInitializeOutputSurface(); |
| 143 virtual scoped_ptr<LayerTreeHostImpl> CreateLayerTreeHostImpl( | 144 virtual scoped_ptr<LayerTreeHostImpl> CreateLayerTreeHostImpl( |
| 144 LayerTreeHostImplClient* client); | 145 LayerTreeHostImplClient* client); |
| 145 void DidLoseOutputSurface(); | 146 void DidLoseOutputSurface(); |
| 146 bool output_surface_lost() const { return output_surface_lost_; } | 147 bool output_surface_lost() const { return output_surface_lost_; } |
| 147 void DidCommitAndDrawFrame() { client_->DidCommitAndDrawFrame(); } | 148 void DidCommitAndDrawFrame() { client_->DidCommitAndDrawFrame(); } |
| 148 void DidCompleteSwapBuffers() { client_->DidCompleteSwapBuffers(); } | 149 void DidCompleteSwapBuffers() { client_->DidCompleteSwapBuffers(); } |
| 149 bool UpdateLayers(); | 150 bool UpdateLayers(); |
| 150 | 151 |
| 152 LayerListIterator<Layer> begin(); |
| 153 LayerListIterator<Layer> end(); |
| 154 LayerListReverseIterator<Layer> rbegin(); |
| 155 LayerListReverseIterator<Layer> rend(); |
| 156 |
| 151 // Called when the compositor completed page scale animation. | 157 // Called when the compositor completed page scale animation. |
| 152 void DidCompletePageScaleAnimation(); | 158 void DidCompletePageScaleAnimation(); |
| 153 | 159 |
| 154 LayerTreeHostClient* client() { return client_; } | 160 LayerTreeHostClient* client() { return client_; } |
| 155 const base::WeakPtr<InputHandler>& GetInputHandler() { | 161 const base::WeakPtr<InputHandler>& GetInputHandler() { |
| 156 return input_handler_weak_ptr_; | 162 return input_handler_weak_ptr_; |
| 157 } | 163 } |
| 158 | 164 |
| 159 void NotifyInputThrottledUntilCommit(); | 165 void NotifyInputThrottledUntilCommit(); |
| 160 | 166 |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 592 | 598 |
| 593 uint32_t surface_id_namespace_; | 599 uint32_t surface_id_namespace_; |
| 594 uint32_t next_surface_sequence_; | 600 uint32_t next_surface_sequence_; |
| 595 | 601 |
| 596 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 602 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 597 }; | 603 }; |
| 598 | 604 |
| 599 } // namespace cc | 605 } // namespace cc |
| 600 | 606 |
| 601 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 607 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |