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 <limits> | 8 #include <limits> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/cancelable_callback.h" | 14 #include "base/cancelable_callback.h" |
15 #include "base/containers/hash_tables.h" | 15 #include "base/containers/hash_tables.h" |
16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
17 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
18 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
19 #include "base/time/time.h" | 19 #include "base/time/time.h" |
20 #include "cc/animation/animation_events.h" | 20 #include "cc/animation/animation_events.h" |
21 #include "cc/base/cc_export.h" | 21 #include "cc/base/cc_export.h" |
22 #include "cc/base/scoped_ptr_vector.h" | |
23 #include "cc/debug/frame_timing_tracker.h" | 22 #include "cc/debug/frame_timing_tracker.h" |
24 #include "cc/debug/micro_benchmark.h" | 23 #include "cc/debug/micro_benchmark.h" |
25 #include "cc/debug/micro_benchmark_controller.h" | 24 #include "cc/debug/micro_benchmark_controller.h" |
26 #include "cc/input/input_handler.h" | 25 #include "cc/input/input_handler.h" |
27 #include "cc/input/layer_selection_bound.h" | 26 #include "cc/input/layer_selection_bound.h" |
28 #include "cc/input/scrollbar.h" | 27 #include "cc/input/scrollbar.h" |
29 #include "cc/input/top_controls_state.h" | 28 #include "cc/input/top_controls_state.h" |
30 #include "cc/layers/layer_lists.h" | 29 #include "cc/layers/layer_lists.h" |
31 #include "cc/output/output_surface.h" | 30 #include "cc/output/output_surface.h" |
32 #include "cc/output/renderer_capabilities.h" | 31 #include "cc/output/renderer_capabilities.h" |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 scoped_refptr<Layer> page_scale_layer_; | 483 scoped_refptr<Layer> page_scale_layer_; |
485 scoped_refptr<Layer> inner_viewport_scroll_layer_; | 484 scoped_refptr<Layer> inner_viewport_scroll_layer_; |
486 scoped_refptr<Layer> outer_viewport_scroll_layer_; | 485 scoped_refptr<Layer> outer_viewport_scroll_layer_; |
487 | 486 |
488 LayerSelection selection_; | 487 LayerSelection selection_; |
489 | 488 |
490 SharedBitmapManager* shared_bitmap_manager_; | 489 SharedBitmapManager* shared_bitmap_manager_; |
491 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_; | 490 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_; |
492 TaskGraphRunner* task_graph_runner_; | 491 TaskGraphRunner* task_graph_runner_; |
493 | 492 |
494 ScopedPtrVector<SwapPromise> swap_promise_list_; | 493 std::vector<scoped_ptr<SwapPromise>> swap_promise_list_; |
495 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 494 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
496 | 495 |
497 PropertyTrees property_trees_; | 496 PropertyTrees property_trees_; |
498 | 497 |
499 typedef base::hash_map<int, Layer*> LayerIdMap; | 498 typedef base::hash_map<int, Layer*> LayerIdMap; |
500 LayerIdMap layer_id_map_; | 499 LayerIdMap layer_id_map_; |
501 | 500 |
502 uint32_t surface_id_namespace_; | 501 uint32_t surface_id_namespace_; |
503 uint32_t next_surface_sequence_; | 502 uint32_t next_surface_sequence_; |
504 | 503 |
505 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 504 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
506 }; | 505 }; |
507 | 506 |
508 } // namespace cc | 507 } // namespace cc |
509 | 508 |
510 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 509 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |