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 |
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/frame_timing_tracker.h" | |
26 #include "cc/debug/micro_benchmark.h" | 25 #include "cc/debug/micro_benchmark.h" |
27 #include "cc/debug/micro_benchmark_controller.h" | 26 #include "cc/debug/micro_benchmark_controller.h" |
28 #include "cc/input/event_listener_properties.h" | 27 #include "cc/input/event_listener_properties.h" |
29 #include "cc/input/input_handler.h" | 28 #include "cc/input/input_handler.h" |
30 #include "cc/input/layer_selection_bound.h" | 29 #include "cc/input/layer_selection_bound.h" |
31 #include "cc/input/scrollbar.h" | 30 #include "cc/input/scrollbar.h" |
32 #include "cc/input/top_controls_state.h" | 31 #include "cc/input/top_controls_state.h" |
33 #include "cc/layers/layer_collections.h" | 32 #include "cc/layers/layer_collections.h" |
34 #include "cc/layers/layer_list_iterator.h" | 33 #include "cc/layers/layer_list_iterator.h" |
35 #include "cc/output/output_surface.h" | 34 #include "cc/output/output_surface.h" |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 void set_surface_id_namespace(uint32_t id_namespace); | 347 void set_surface_id_namespace(uint32_t id_namespace); |
349 SurfaceSequence CreateSurfaceSequence(); | 348 SurfaceSequence CreateSurfaceSequence(); |
350 | 349 |
351 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval); | 350 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval); |
352 | 351 |
353 PropertyTrees* property_trees() { return &property_trees_; } | 352 PropertyTrees* property_trees() { return &property_trees_; } |
354 bool needs_meta_info_recomputation() { | 353 bool needs_meta_info_recomputation() { |
355 return needs_meta_info_recomputation_; | 354 return needs_meta_info_recomputation_; |
356 } | 355 } |
357 | 356 |
358 void RecordFrameTimingEvents( | |
359 std::unique_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, | |
360 std::unique_ptr<FrameTimingTracker::MainFrameTimingSet> | |
361 main_frame_events); | |
362 | |
363 Layer* LayerById(int id) const; | 357 Layer* LayerById(int id) const; |
364 | 358 |
365 void AddLayerShouldPushProperties(Layer* layer); | 359 void AddLayerShouldPushProperties(Layer* layer); |
366 void RemoveLayerShouldPushProperties(Layer* layer); | 360 void RemoveLayerShouldPushProperties(Layer* layer); |
367 std::unordered_set<Layer*>& LayersThatShouldPushProperties(); | 361 std::unordered_set<Layer*>& LayersThatShouldPushProperties(); |
368 bool LayerNeedsPushPropertiesForTesting(Layer* layer); | 362 bool LayerNeedsPushPropertiesForTesting(Layer* layer); |
369 | 363 |
370 void RegisterLayer(Layer* layer); | 364 void RegisterLayer(Layer* layer); |
371 void UnregisterLayer(Layer* layer); | 365 void UnregisterLayer(Layer* layer); |
372 // LayerTreeMutatorsClient implementation. | 366 // LayerTreeMutatorsClient implementation. |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 | 590 |
597 uint32_t surface_id_namespace_; | 591 uint32_t surface_id_namespace_; |
598 uint32_t next_surface_sequence_; | 592 uint32_t next_surface_sequence_; |
599 | 593 |
600 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 594 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
601 }; | 595 }; |
602 | 596 |
603 } // namespace cc | 597 } // namespace cc |
604 | 598 |
605 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 599 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |