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> |
11 #include <memory> | 11 #include <memory> |
12 #include <set> | 12 #include <set> |
13 #include <string> | 13 #include <string> |
14 #include <unordered_map> | 14 #include <unordered_map> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "base/callback.h" | 17 #include "base/callback.h" |
18 #include "base/macros.h" | 18 #include "base/macros.h" |
19 #include "base/time/time.h" | 19 #include "base/time/time.h" |
20 #include "cc/base/cc_export.h" | 20 #include "cc/base/cc_export.h" |
21 #include "cc/base/synced_property.h" | 21 #include "cc/base/synced_property.h" |
22 #include "cc/debug/micro_benchmark_controller_impl.h" | 22 #include "cc/debug/micro_benchmark_controller_impl.h" |
23 #include "cc/input/browser_controls_offset_manager_client.h" | 23 #include "cc/input/browser_controls_offset_manager_client.h" |
24 #include "cc/input/input_handler.h" | 24 #include "cc/input/input_handler.h" |
25 #include "cc/input/scrollbar_animation_controller.h" | 25 #include "cc/input/scrollbar_animation_controller.h" |
26 #include "cc/layers/layer_collections.h" | 26 #include "cc/layers/layer_collections.h" |
27 #include "cc/layers/render_pass_sink.h" | 27 #include "cc/layers/render_pass_sink.h" |
28 #include "cc/output/begin_frame_args.h" | |
29 #include "cc/output/compositor_frame_sink_client.h" | 28 #include "cc/output/compositor_frame_sink_client.h" |
30 #include "cc/output/context_cache_controller.h" | 29 #include "cc/output/context_cache_controller.h" |
31 #include "cc/output/managed_memory_policy.h" | 30 #include "cc/output/managed_memory_policy.h" |
32 #include "cc/quads/render_pass.h" | 31 #include "cc/quads/render_pass.h" |
33 #include "cc/resources/resource_provider.h" | 32 #include "cc/resources/resource_provider.h" |
34 #include "cc/resources/ui_resource_client.h" | 33 #include "cc/resources/ui_resource_client.h" |
35 #include "cc/scheduler/begin_frame_tracker.h" | 34 #include "cc/scheduler/begin_frame_tracker.h" |
36 #include "cc/scheduler/commit_earlyout_reason.h" | 35 #include "cc/scheduler/commit_earlyout_reason.h" |
37 #include "cc/scheduler/draw_result.h" | 36 #include "cc/scheduler/draw_result.h" |
38 #include "cc/scheduler/video_frame_controller.h" | 37 #include "cc/scheduler/video_frame_controller.h" |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 ~FrameData() override; | 215 ~FrameData() override; |
217 void AsValueInto(base::trace_event::TracedValue* value) const; | 216 void AsValueInto(base::trace_event::TracedValue* value) const; |
218 | 217 |
219 std::vector<gfx::Rect> occluding_screen_space_rects; | 218 std::vector<gfx::Rect> occluding_screen_space_rects; |
220 std::vector<gfx::Rect> non_occluding_screen_space_rects; | 219 std::vector<gfx::Rect> non_occluding_screen_space_rects; |
221 RenderPassList render_passes; | 220 RenderPassList render_passes; |
222 const LayerImplList* render_surface_layer_list; | 221 const LayerImplList* render_surface_layer_list; |
223 LayerImplList will_draw_layers; | 222 LayerImplList will_draw_layers; |
224 bool has_no_damage; | 223 bool has_no_damage; |
225 bool may_contain_video; | 224 bool may_contain_video; |
| 225 uint64_t begin_frame_source_id; |
| 226 uint64_t begin_frame_number; |
| 227 uint64_t latest_confirmed_frame; |
226 | 228 |
227 // RenderPassSink implementation. | 229 // RenderPassSink implementation. |
228 void AppendRenderPass(std::unique_ptr<RenderPass> render_pass) override; | 230 void AppendRenderPass(std::unique_ptr<RenderPass> render_pass) override; |
229 | 231 |
230 private: | 232 private: |
231 DISALLOW_COPY_AND_ASSIGN(FrameData); | 233 DISALLOW_COPY_AND_ASSIGN(FrameData); |
232 }; | 234 }; |
233 | 235 |
234 virtual void BeginMainFrameAborted( | 236 virtual void BeginMainFrameAborted( |
235 CommitEarlyOutReason reason, | 237 CommitEarlyOutReason reason, |
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
818 | 820 |
819 std::unique_ptr<PendingTreeDurationHistogramTimer> | 821 std::unique_ptr<PendingTreeDurationHistogramTimer> |
820 pending_tree_duration_timer_; | 822 pending_tree_duration_timer_; |
821 | 823 |
822 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 824 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
823 }; | 825 }; |
824 | 826 |
825 } // namespace cc | 827 } // namespace cc |
826 | 828 |
827 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 829 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |