| 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> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 rendering_stats_instrumentation_(RenderingStatsInstrumentation::Create()), | 101 rendering_stats_instrumentation_(RenderingStatsInstrumentation::Create()), |
| 102 settings_(*params->settings), | 102 settings_(*params->settings), |
| 103 debug_state_(settings_.initial_debug_state), | 103 debug_state_(settings_.initial_debug_state), |
| 104 id_(s_layer_tree_host_sequence_number.GetNext() + 1), | 104 id_(s_layer_tree_host_sequence_number.GetNext() + 1), |
| 105 task_graph_runner_(params->task_graph_runner), | 105 task_graph_runner_(params->task_graph_runner), |
| 106 content_source_id_(0), | 106 content_source_id_(0), |
| 107 event_listener_properties_(), | 107 event_listener_properties_(), |
| 108 mutator_host_(params->mutator_host) { | 108 mutator_host_(params->mutator_host) { |
| 109 DCHECK(task_graph_runner_); | 109 DCHECK(task_graph_runner_); |
| 110 DCHECK(!settings_.enable_checker_imaging || image_worker_task_runner_); | 110 DCHECK(!settings_.enable_checker_imaging || image_worker_task_runner_); |
| 111 DCHECK(!settings_.enable_checker_imaging || | |
| 112 settings_.image_decode_tasks_enabled); | |
| 113 | 111 |
| 114 mutator_host_->SetMutatorHostClient(this); | 112 mutator_host_->SetMutatorHostClient(this); |
| 115 | 113 |
| 116 rendering_stats_instrumentation_->set_record_rendering_stats( | 114 rendering_stats_instrumentation_->set_record_rendering_stats( |
| 117 debug_state_.RecordRenderingStats()); | 115 debug_state_.RecordRenderingStats()); |
| 118 } | 116 } |
| 119 | 117 |
| 120 void LayerTreeHost::InitializeThreaded( | 118 void LayerTreeHost::InitializeThreaded( |
| 121 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 119 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
| 122 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner) { | 120 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner) { |
| (...skipping 1318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1441 void LayerTreeHost::SetNeedsDisplayOnAllLayers() { | 1439 void LayerTreeHost::SetNeedsDisplayOnAllLayers() { |
| 1442 for (auto* layer : *this) | 1440 for (auto* layer : *this) |
| 1443 layer->SetNeedsDisplay(); | 1441 layer->SetNeedsDisplay(); |
| 1444 } | 1442 } |
| 1445 | 1443 |
| 1446 void LayerTreeHost::SetHasCopyRequest(bool has_copy_request) { | 1444 void LayerTreeHost::SetHasCopyRequest(bool has_copy_request) { |
| 1447 has_copy_request_ = has_copy_request; | 1445 has_copy_request_ = has_copy_request; |
| 1448 } | 1446 } |
| 1449 | 1447 |
| 1450 } // namespace cc | 1448 } // namespace cc |
| OLD | NEW |