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_impl.h" | 5 #include "cc/trees/layer_tree_host_impl.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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 settings.use_partial_raster)), | 224 settings.use_partial_raster)), |
225 pinch_gesture_active_(false), | 225 pinch_gesture_active_(false), |
226 pinch_gesture_end_should_clear_scrolling_layer_(false), | 226 pinch_gesture_end_should_clear_scrolling_layer_(false), |
227 fps_counter_( | 227 fps_counter_( |
228 FrameRateCounter::Create(task_runner_provider_->HasImplThread())), | 228 FrameRateCounter::Create(task_runner_provider_->HasImplThread())), |
229 memory_history_(MemoryHistory::Create()), | 229 memory_history_(MemoryHistory::Create()), |
230 debug_rect_history_(DebugRectHistory::Create()), | 230 debug_rect_history_(DebugRectHistory::Create()), |
231 texture_mailbox_deleter_(new TextureMailboxDeleter(GetTaskRunner())), | 231 texture_mailbox_deleter_(new TextureMailboxDeleter(GetTaskRunner())), |
232 max_memory_needed_bytes_(0), | 232 max_memory_needed_bytes_(0), |
233 resourceless_software_draw_(false), | 233 resourceless_software_draw_(false), |
234 output_is_secure_(false), | |
235 animation_host_(), | 234 animation_host_(), |
236 rendering_stats_instrumentation_(rendering_stats_instrumentation), | 235 rendering_stats_instrumentation_(rendering_stats_instrumentation), |
237 micro_benchmark_controller_(this), | 236 micro_benchmark_controller_(this), |
238 shared_bitmap_manager_(shared_bitmap_manager), | 237 shared_bitmap_manager_(shared_bitmap_manager), |
239 gpu_memory_buffer_manager_(gpu_memory_buffer_manager), | 238 gpu_memory_buffer_manager_(gpu_memory_buffer_manager), |
240 task_graph_runner_(task_graph_runner), | 239 task_graph_runner_(task_graph_runner), |
241 id_(id), | 240 id_(id), |
242 requires_high_res_to_draw_(false), | 241 requires_high_res_to_draw_(false), |
243 is_likely_to_require_a_draw_(false), | 242 is_likely_to_require_a_draw_(false), |
244 mutator_(nullptr) { | 243 mutator_(nullptr) { |
(...skipping 3742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3987 return task_runner_provider_->HasImplThread(); | 3986 return task_runner_provider_->HasImplThread(); |
3988 } | 3987 } |
3989 | 3988 |
3990 bool LayerTreeHostImpl::CommitToActiveTree() const { | 3989 bool LayerTreeHostImpl::CommitToActiveTree() const { |
3991 // In single threaded mode we skip the pending tree and commit directly to the | 3990 // In single threaded mode we skip the pending tree and commit directly to the |
3992 // active tree. | 3991 // active tree. |
3993 return !task_runner_provider_->HasImplThread(); | 3992 return !task_runner_provider_->HasImplThread(); |
3994 } | 3993 } |
3995 | 3994 |
3996 } // namespace cc | 3995 } // namespace cc |
OLD | NEW |