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 16 matching lines...) Expand all Loading... |
27 #include "cc/debug/micro_benchmark.h" | 27 #include "cc/debug/micro_benchmark.h" |
28 #include "cc/debug/micro_benchmark_controller.h" | 28 #include "cc/debug/micro_benchmark_controller.h" |
29 #include "cc/input/event_listener_properties.h" | 29 #include "cc/input/event_listener_properties.h" |
30 #include "cc/input/input_handler.h" | 30 #include "cc/input/input_handler.h" |
31 #include "cc/input/layer_selection_bound.h" | 31 #include "cc/input/layer_selection_bound.h" |
32 #include "cc/input/scrollbar.h" | 32 #include "cc/input/scrollbar.h" |
33 #include "cc/input/top_controls_state.h" | 33 #include "cc/input/top_controls_state.h" |
34 #include "cc/layers/layer_collections.h" | 34 #include "cc/layers/layer_collections.h" |
35 #include "cc/layers/layer_list_iterator.h" | 35 #include "cc/layers/layer_list_iterator.h" |
36 #include "cc/output/output_surface.h" | 36 #include "cc/output/output_surface.h" |
| 37 #include "cc/output/renderer_capabilities.h" |
37 #include "cc/output/swap_promise.h" | 38 #include "cc/output/swap_promise.h" |
38 #include "cc/resources/resource_format.h" | 39 #include "cc/resources/resource_format.h" |
39 #include "cc/resources/scoped_ui_resource.h" | 40 #include "cc/resources/scoped_ui_resource.h" |
40 #include "cc/surfaces/surface_sequence.h" | 41 #include "cc/surfaces/surface_sequence.h" |
41 #include "cc/trees/compositor_mode.h" | 42 #include "cc/trees/compositor_mode.h" |
42 #include "cc/trees/layer_tree.h" | 43 #include "cc/trees/layer_tree.h" |
43 #include "cc/trees/layer_tree_host_client.h" | 44 #include "cc/trees/layer_tree_host_client.h" |
44 #include "cc/trees/layer_tree_settings.h" | 45 #include "cc/trees/layer_tree_settings.h" |
45 #include "cc/trees/proxy.h" | 46 #include "cc/trees/proxy.h" |
46 #include "cc/trees/swap_promise_monitor.h" | 47 #include "cc/trees/swap_promise_monitor.h" |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 bool gpu_rasterization_histogram_recorded() const { | 170 bool gpu_rasterization_histogram_recorded() const { |
170 return gpu_rasterization_histogram_recorded_; | 171 return gpu_rasterization_histogram_recorded_; |
171 } | 172 } |
172 | 173 |
173 void CollectRenderingStats(RenderingStats* stats) const; | 174 void CollectRenderingStats(RenderingStats* stats) const; |
174 | 175 |
175 RenderingStatsInstrumentation* rendering_stats_instrumentation() const { | 176 RenderingStatsInstrumentation* rendering_stats_instrumentation() const { |
176 return rendering_stats_instrumentation_.get(); | 177 return rendering_stats_instrumentation_.get(); |
177 } | 178 } |
178 | 179 |
| 180 virtual const RendererCapabilities& GetRendererCapabilities() const; |
| 181 |
179 void SetNeedsAnimate(); | 182 void SetNeedsAnimate(); |
180 virtual void SetNeedsUpdateLayers(); | 183 virtual void SetNeedsUpdateLayers(); |
181 virtual void SetNeedsCommit(); | 184 virtual void SetNeedsCommit(); |
182 void SetNeedsRedraw(); | 185 void SetNeedsRedraw(); |
183 void SetNeedsRedrawRect(const gfx::Rect& damage_rect); | 186 void SetNeedsRedrawRect(const gfx::Rect& damage_rect); |
184 bool CommitRequested() const; | 187 bool CommitRequested() const; |
185 bool BeginMainFrameRequested() const; | 188 bool BeginMainFrameRequested() const; |
186 | 189 |
187 void SetNextCommitWaitsForActivation(); | 190 void SetNextCommitWaitsForActivation(); |
188 | 191 |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 uint32_t surface_client_id_; | 442 uint32_t surface_client_id_; |
440 uint32_t next_surface_sequence_; | 443 uint32_t next_surface_sequence_; |
441 uint32_t num_consecutive_frames_suitable_for_gpu_ = 0; | 444 uint32_t num_consecutive_frames_suitable_for_gpu_ = 0; |
442 | 445 |
443 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 446 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
444 }; | 447 }; |
445 | 448 |
446 } // namespace cc | 449 } // namespace cc |
447 | 450 |
448 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 451 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |