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 #include "cc/layer_tree_host.h" | 5 #include "cc/layer_tree_host.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
12 #include "base/string_number_conversions.h" | 12 #include "base/string_number_conversions.h" |
13 #include "cc/animation_registrar.h" | 13 #include "cc/animation_registrar.h" |
| 14 #include "cc/base/math_util.h" |
| 15 #include "cc/base/switches.h" |
| 16 #include "cc/base/thread.h" |
14 #include "cc/heads_up_display_layer.h" | 17 #include "cc/heads_up_display_layer.h" |
15 #include "cc/heads_up_display_layer_impl.h" | 18 #include "cc/heads_up_display_layer_impl.h" |
16 #include "cc/layer.h" | 19 #include "cc/layer.h" |
17 #include "cc/layer_animation_controller.h" | 20 #include "cc/layer_animation_controller.h" |
18 #include "cc/layer_iterator.h" | 21 #include "cc/layer_iterator.h" |
19 #include "cc/layer_tree_host_client.h" | 22 #include "cc/layer_tree_host_client.h" |
20 #include "cc/layer_tree_host_common.h" | 23 #include "cc/layer_tree_host_common.h" |
21 #include "cc/layer_tree_host_impl.h" | 24 #include "cc/layer_tree_host_impl.h" |
22 #include "cc/layer_tree_impl.h" | 25 #include "cc/layer_tree_impl.h" |
23 #include "cc/math_util.h" | |
24 #include "cc/occlusion_tracker.h" | 26 #include "cc/occlusion_tracker.h" |
25 #include "cc/overdraw_metrics.h" | 27 #include "cc/overdraw_metrics.h" |
26 #include "cc/prioritized_resource_manager.h" | 28 #include "cc/prioritized_resource_manager.h" |
27 #include "cc/single_thread_proxy.h" | 29 #include "cc/single_thread_proxy.h" |
28 #include "cc/switches.h" | |
29 #include "cc/thread.h" | |
30 #include "cc/thread_proxy.h" | 30 #include "cc/thread_proxy.h" |
31 #include "cc/top_controls_manager.h" | 31 #include "cc/top_controls_manager.h" |
32 #include "cc/tree_synchronizer.h" | 32 #include "cc/tree_synchronizer.h" |
33 | 33 |
34 namespace { | 34 namespace { |
35 static int s_num_layer_tree_instances; | 35 static int s_num_layer_tree_instances; |
36 } | 36 } |
37 | 37 |
38 namespace cc { | 38 namespace cc { |
39 | 39 |
(...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
939 SetAnimationEventsRecursive(events, | 939 SetAnimationEventsRecursive(events, |
940 layer->children()[child_index].get(), | 940 layer->children()[child_index].get(), |
941 wall_clock_time); | 941 wall_clock_time); |
942 } | 942 } |
943 | 943 |
944 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() { | 944 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() { |
945 return proxy_->CapturePicture(); | 945 return proxy_->CapturePicture(); |
946 } | 946 } |
947 | 947 |
948 } // namespace cc | 948 } // namespace cc |
OLD | NEW |