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_IN_PROCESS_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_IN_PROCESS_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_IN_PROCESS_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_IN_PROCESS_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <limits> | 11 #include <limits> |
12 #include <memory> | 12 #include <memory> |
13 #include <set> | 13 #include <set> |
14 #include <string> | 14 #include <string> |
15 #include <unordered_map> | 15 #include <unordered_map> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
18 #include "base/cancelable_callback.h" | 18 #include "base/cancelable_callback.h" |
19 #include "base/macros.h" | 19 #include "base/macros.h" |
20 #include "base/memory/ref_counted.h" | 20 #include "base/memory/ref_counted.h" |
21 #include "base/memory/weak_ptr.h" | 21 #include "base/memory/weak_ptr.h" |
22 #include "base/time/time.h" | 22 #include "base/time/time.h" |
23 #include "cc/animation/target_property.h" | 23 #include "cc/animation/target_property.h" |
24 #include "cc/base/cc_export.h" | 24 #include "cc/base/cc_export.h" |
25 #include "cc/debug/micro_benchmark.h" | 25 #include "cc/debug/micro_benchmark.h" |
26 #include "cc/debug/micro_benchmark_controller.h" | 26 #include "cc/debug/micro_benchmark_controller.h" |
| 27 #include "cc/input/browser_controls_state.h" |
27 #include "cc/input/event_listener_properties.h" | 28 #include "cc/input/event_listener_properties.h" |
28 #include "cc/input/input_handler.h" | 29 #include "cc/input/input_handler.h" |
29 #include "cc/input/layer_selection_bound.h" | 30 #include "cc/input/layer_selection_bound.h" |
30 #include "cc/input/scrollbar.h" | 31 #include "cc/input/scrollbar.h" |
31 #include "cc/input/top_controls_state.h" | |
32 #include "cc/layers/layer_collections.h" | 32 #include "cc/layers/layer_collections.h" |
33 #include "cc/layers/layer_list_iterator.h" | 33 #include "cc/layers/layer_list_iterator.h" |
34 #include "cc/output/compositor_frame_sink.h" | 34 #include "cc/output/compositor_frame_sink.h" |
35 #include "cc/output/swap_promise.h" | 35 #include "cc/output/swap_promise.h" |
36 #include "cc/resources/resource_format.h" | 36 #include "cc/resources/resource_format.h" |
37 #include "cc/surfaces/surface_sequence_generator.h" | 37 #include "cc/surfaces/surface_sequence_generator.h" |
38 #include "cc/trees/compositor_mode.h" | 38 #include "cc/trees/compositor_mode.h" |
39 #include "cc/trees/layer_tree.h" | 39 #include "cc/trees/layer_tree.h" |
40 #include "cc/trees/layer_tree_host.h" | 40 #include "cc/trees/layer_tree_host.h" |
41 #include "cc/trees/layer_tree_host_client.h" | 41 #include "cc/trees/layer_tree_host_client.h" |
(...skipping 22 matching lines...) Expand all Loading... |
64 class LayerTreeHostSingleThreadClient; | 64 class LayerTreeHostSingleThreadClient; |
65 class LayerTreeMutator; | 65 class LayerTreeMutator; |
66 class PropertyTrees; | 66 class PropertyTrees; |
67 class Region; | 67 class Region; |
68 class RemoteProtoChannel; | 68 class RemoteProtoChannel; |
69 class RenderingStatsInstrumentation; | 69 class RenderingStatsInstrumentation; |
70 class ResourceProvider; | 70 class ResourceProvider; |
71 class ResourceUpdateQueue; | 71 class ResourceUpdateQueue; |
72 class SharedBitmapManager; | 72 class SharedBitmapManager; |
73 class TaskGraphRunner; | 73 class TaskGraphRunner; |
74 class TopControlsManager; | |
75 struct PendingPageScaleAnimation; | 74 struct PendingPageScaleAnimation; |
76 struct RenderingStats; | 75 struct RenderingStats; |
77 struct ScrollAndScaleSet; | 76 struct ScrollAndScaleSet; |
78 | 77 |
79 namespace proto { | 78 namespace proto { |
80 class LayerTreeHost; | 79 class LayerTreeHost; |
81 } | 80 } |
82 | 81 |
83 class CC_EXPORT LayerTreeHostInProcess : public LayerTreeHost { | 82 class CC_EXPORT LayerTreeHostInProcess : public LayerTreeHost { |
84 public: | 83 public: |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 void SetNeedsCommit() override; | 146 void SetNeedsCommit() override; |
148 void SetNeedsRecalculateRasterScales() override; | 147 void SetNeedsRecalculateRasterScales() override; |
149 bool BeginMainFrameRequested() const override; | 148 bool BeginMainFrameRequested() const override; |
150 bool CommitRequested() const override; | 149 bool CommitRequested() const override; |
151 void SetDeferCommits(bool defer_commits) override; | 150 void SetDeferCommits(bool defer_commits) override; |
152 void LayoutAndUpdateLayers() override; | 151 void LayoutAndUpdateLayers() override; |
153 void Composite(base::TimeTicks frame_begin_time) override; | 152 void Composite(base::TimeTicks frame_begin_time) override; |
154 void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override; | 153 void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override; |
155 void SetNextCommitForcesRedraw() override; | 154 void SetNextCommitForcesRedraw() override; |
156 void NotifyInputThrottledUntilCommit() override; | 155 void NotifyInputThrottledUntilCommit() override; |
157 void UpdateTopControlsState(TopControlsState constraints, | 156 void UpdateBrowserControlsState(BrowserControlsState constraints, |
158 TopControlsState current, | 157 BrowserControlsState current, |
159 bool animate) override; | 158 bool animate) override; |
160 const base::WeakPtr<InputHandler>& GetInputHandler() const override; | 159 const base::WeakPtr<InputHandler>& GetInputHandler() const override; |
161 void DidStopFlinging() override; | 160 void DidStopFlinging() override; |
162 void SetDebugState(const LayerTreeDebugState& debug_state) override; | 161 void SetDebugState(const LayerTreeDebugState& debug_state) override; |
163 const LayerTreeDebugState& GetDebugState() const override; | 162 const LayerTreeDebugState& GetDebugState() const override; |
164 int ScheduleMicroBenchmark( | 163 int ScheduleMicroBenchmark( |
165 const std::string& benchmark_name, | 164 const std::string& benchmark_name, |
166 std::unique_ptr<base::Value> value, | 165 std::unique_ptr<base::Value> value, |
167 const MicroBenchmark::DoneCallback& callback) override; | 166 const MicroBenchmark::DoneCallback& callback) override; |
168 bool SendMessageToMicroBenchmark(int id, | 167 bool SendMessageToMicroBenchmark(int id, |
169 std::unique_ptr<base::Value> value) override; | 168 std::unique_ptr<base::Value> value) override; |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 | 365 |
367 SurfaceSequenceGenerator surface_sequence_generator_; | 366 SurfaceSequenceGenerator surface_sequence_generator_; |
368 uint32_t num_consecutive_frames_suitable_for_gpu_ = 0; | 367 uint32_t num_consecutive_frames_suitable_for_gpu_ = 0; |
369 | 368 |
370 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostInProcess); | 369 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostInProcess); |
371 }; | 370 }; |
372 | 371 |
373 } // namespace cc | 372 } // namespace cc |
374 | 373 |
375 #endif // CC_TREES_LAYER_TREE_HOST_IN_PROCESS_H_ | 374 #endif // CC_TREES_LAYER_TREE_HOST_IN_PROCESS_H_ |
OLD | NEW |