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 <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
7 #include <algorithm> | 10 #include <algorithm> |
8 #include <stack> | 11 #include <stack> |
9 #include <string> | 12 #include <string> |
10 | 13 |
11 #include "base/atomic_sequence_num.h" | 14 #include "base/atomic_sequence_num.h" |
12 #include "base/auto_reset.h" | 15 #include "base/auto_reset.h" |
13 #include "base/bind.h" | 16 #include "base/bind.h" |
14 #include "base/command_line.h" | 17 #include "base/command_line.h" |
15 #include "base/location.h" | 18 #include "base/location.h" |
16 #include "base/metrics/histogram.h" | 19 #include "base/metrics/histogram.h" |
(...skipping 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1267 return compositor_mode_ == CompositorMode::SingleThreaded; | 1270 return compositor_mode_ == CompositorMode::SingleThreaded; |
1268 } | 1271 } |
1269 | 1272 |
1270 bool LayerTreeHost::IsThreaded() const { | 1273 bool LayerTreeHost::IsThreaded() const { |
1271 DCHECK(compositor_mode_ != CompositorMode::Threaded || | 1274 DCHECK(compositor_mode_ != CompositorMode::Threaded || |
1272 task_runner_provider_->HasImplThread()); | 1275 task_runner_provider_->HasImplThread()); |
1273 return compositor_mode_ == CompositorMode::Threaded; | 1276 return compositor_mode_ == CompositorMode::Threaded; |
1274 } | 1277 } |
1275 | 1278 |
1276 } // namespace cc | 1279 } // namespace cc |
OLD | NEW |