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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 cached_managed_memory_policy_(settings.gpu_memory_policy), | 225 cached_managed_memory_policy_(settings.gpu_memory_policy), |
226 is_synchronous_single_threaded_(!task_runner_provider->HasImplThread() && | 226 is_synchronous_single_threaded_(!task_runner_provider->HasImplThread() && |
227 !settings.single_thread_proxy_scheduler), | 227 !settings.single_thread_proxy_scheduler), |
228 // Must be initialized after is_synchronous_single_threaded_ and | 228 // Must be initialized after is_synchronous_single_threaded_ and |
229 // task_runner_provider_. | 229 // task_runner_provider_. |
230 tile_manager_(this, | 230 tile_manager_(this, |
231 GetTaskRunner(), | 231 GetTaskRunner(), |
232 is_synchronous_single_threaded_ | 232 is_synchronous_single_threaded_ |
233 ? std::numeric_limits<size_t>::max() | 233 ? std::numeric_limits<size_t>::max() |
234 : settings.scheduled_raster_task_limit, | 234 : settings.scheduled_raster_task_limit, |
235 settings.use_partial_raster), | 235 settings.use_partial_raster, |
| 236 settings.check_tile_priority_inversion), |
236 pinch_gesture_active_(false), | 237 pinch_gesture_active_(false), |
237 pinch_gesture_end_should_clear_scrolling_layer_(false), | 238 pinch_gesture_end_should_clear_scrolling_layer_(false), |
238 fps_counter_( | 239 fps_counter_( |
239 FrameRateCounter::Create(task_runner_provider_->HasImplThread())), | 240 FrameRateCounter::Create(task_runner_provider_->HasImplThread())), |
240 memory_history_(MemoryHistory::Create()), | 241 memory_history_(MemoryHistory::Create()), |
241 debug_rect_history_(DebugRectHistory::Create()), | 242 debug_rect_history_(DebugRectHistory::Create()), |
242 max_memory_needed_bytes_(0), | 243 max_memory_needed_bytes_(0), |
243 resourceless_software_draw_(false), | 244 resourceless_software_draw_(false), |
244 mutator_host_(std::move(mutator_host)), | 245 mutator_host_(std::move(mutator_host)), |
245 rendering_stats_instrumentation_(rendering_stats_instrumentation), | 246 rendering_stats_instrumentation_(rendering_stats_instrumentation), |
(...skipping 3842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4088 worker_context_visibility_ = | 4089 worker_context_visibility_ = |
4089 worker_context->CacheController()->ClientBecameVisible(); | 4090 worker_context->CacheController()->ClientBecameVisible(); |
4090 } else { | 4091 } else { |
4091 worker_context->CacheController()->ClientBecameNotVisible( | 4092 worker_context->CacheController()->ClientBecameNotVisible( |
4092 std::move(worker_context_visibility_)); | 4093 std::move(worker_context_visibility_)); |
4093 } | 4094 } |
4094 } | 4095 } |
4095 } | 4096 } |
4096 | 4097 |
4097 } // namespace cc | 4098 } // namespace cc |
OLD | NEW |