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/trees/layer_tree_host.h" | 5 #include "cc/trees/layer_tree_host.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <stack> | 8 #include <stack> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "cc/debug/frame_viewer_instrumentation.h" | 28 #include "cc/debug/frame_viewer_instrumentation.h" |
29 #include "cc/debug/rendering_stats_instrumentation.h" | 29 #include "cc/debug/rendering_stats_instrumentation.h" |
30 #include "cc/input/layer_selection_bound.h" | 30 #include "cc/input/layer_selection_bound.h" |
31 #include "cc/input/page_scale_animation.h" | 31 #include "cc/input/page_scale_animation.h" |
32 #include "cc/layers/heads_up_display_layer.h" | 32 #include "cc/layers/heads_up_display_layer.h" |
33 #include "cc/layers/heads_up_display_layer_impl.h" | 33 #include "cc/layers/heads_up_display_layer_impl.h" |
34 #include "cc/layers/layer.h" | 34 #include "cc/layers/layer.h" |
35 #include "cc/layers/layer_iterator.h" | 35 #include "cc/layers/layer_iterator.h" |
36 #include "cc/layers/layer_settings.h" | 36 #include "cc/layers/layer_settings.h" |
37 #include "cc/layers/painted_scrollbar_layer.h" | 37 #include "cc/layers/painted_scrollbar_layer.h" |
| 38 #include "cc/proto/layer_tree_host.pb.h" |
38 #include "cc/resources/ui_resource_request.h" | 39 #include "cc/resources/ui_resource_request.h" |
39 #include "cc/scheduler/begin_frame_source.h" | 40 #include "cc/scheduler/begin_frame_source.h" |
40 #include "cc/trees/draw_property_utils.h" | 41 #include "cc/trees/draw_property_utils.h" |
41 #include "cc/trees/layer_tree_host_client.h" | 42 #include "cc/trees/layer_tree_host_client.h" |
42 #include "cc/trees/layer_tree_host_common.h" | 43 #include "cc/trees/layer_tree_host_common.h" |
43 #include "cc/trees/layer_tree_host_impl.h" | 44 #include "cc/trees/layer_tree_host_impl.h" |
44 #include "cc/trees/layer_tree_impl.h" | 45 #include "cc/trees/layer_tree_impl.h" |
45 #include "cc/trees/proxy_main.h" | 46 #include "cc/trees/proxy_main.h" |
46 #include "cc/trees/single_thread_proxy.h" | 47 #include "cc/trees/single_thread_proxy.h" |
47 #include "cc/trees/tree_synchronizer.h" | 48 #include "cc/trees/tree_synchronizer.h" |
(...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1262 !task_runner_provider_->HasImplThread()); | 1263 !task_runner_provider_->HasImplThread()); |
1263 return compositor_mode_ == CompositorMode::SingleThreaded; | 1264 return compositor_mode_ == CompositorMode::SingleThreaded; |
1264 } | 1265 } |
1265 | 1266 |
1266 bool LayerTreeHost::IsThreaded() const { | 1267 bool LayerTreeHost::IsThreaded() const { |
1267 DCHECK(compositor_mode_ != CompositorMode::Threaded || | 1268 DCHECK(compositor_mode_ != CompositorMode::Threaded || |
1268 task_runner_provider_->HasImplThread()); | 1269 task_runner_provider_->HasImplThread()); |
1269 return compositor_mode_ == CompositorMode::Threaded; | 1270 return compositor_mode_ == CompositorMode::Threaded; |
1270 } | 1271 } |
1271 | 1272 |
| 1273 void LayerTreeHost::ToProtobufForCommit(proto::LayerTreeHost* proto) const {} |
| 1274 |
| 1275 void LayerTreeHost::FromProtobufForCommit(const proto::LayerTreeHost& proto) {} |
| 1276 |
1272 } // namespace cc | 1277 } // namespace cc |
OLD | NEW |