| 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 cached_managed_memory_policy_(settings.memory_policy_), | 216 cached_managed_memory_policy_(settings.memory_policy_), |
| 217 is_synchronous_single_threaded_(!task_runner_provider->HasImplThread() && | 217 is_synchronous_single_threaded_(!task_runner_provider->HasImplThread() && |
| 218 !settings.single_thread_proxy_scheduler), | 218 !settings.single_thread_proxy_scheduler), |
| 219 // Must be initialized after is_synchronous_single_threaded_ and | 219 // Must be initialized after is_synchronous_single_threaded_ and |
| 220 // task_runner_provider_. | 220 // task_runner_provider_. |
| 221 tile_manager_(this, | 221 tile_manager_(this, |
| 222 GetTaskRunner(), | 222 GetTaskRunner(), |
| 223 is_synchronous_single_threaded_ | 223 is_synchronous_single_threaded_ |
| 224 ? std::numeric_limits<size_t>::max() | 224 ? std::numeric_limits<size_t>::max() |
| 225 : settings.scheduled_raster_task_limit, | 225 : settings.scheduled_raster_task_limit, |
| 226 settings.use_partial_raster, | 226 settings.use_partial_raster), |
| 227 settings.max_preraster_distance_in_screen_pixels), | |
| 228 pinch_gesture_active_(false), | 227 pinch_gesture_active_(false), |
| 229 pinch_gesture_end_should_clear_scrolling_layer_(false), | 228 pinch_gesture_end_should_clear_scrolling_layer_(false), |
| 230 fps_counter_( | 229 fps_counter_( |
| 231 FrameRateCounter::Create(task_runner_provider_->HasImplThread())), | 230 FrameRateCounter::Create(task_runner_provider_->HasImplThread())), |
| 232 memory_history_(MemoryHistory::Create()), | 231 memory_history_(MemoryHistory::Create()), |
| 233 debug_rect_history_(DebugRectHistory::Create()), | 232 debug_rect_history_(DebugRectHistory::Create()), |
| 234 texture_mailbox_deleter_(new TextureMailboxDeleter(GetTaskRunner())), | 233 texture_mailbox_deleter_(new TextureMailboxDeleter(GetTaskRunner())), |
| 235 max_memory_needed_bytes_(0), | 234 max_memory_needed_bytes_(0), |
| 236 resourceless_software_draw_(false), | 235 resourceless_software_draw_(false), |
| 237 animation_host_(std::move(animation_host)), | 236 animation_host_(std::move(animation_host)), |
| (...skipping 3958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4196 if (is_visible) { | 4195 if (is_visible) { |
| 4197 worker_context_visibility_ = | 4196 worker_context_visibility_ = |
| 4198 worker_context->CacheController()->ClientBecameVisible(); | 4197 worker_context->CacheController()->ClientBecameVisible(); |
| 4199 } else { | 4198 } else { |
| 4200 worker_context->CacheController()->ClientBecameNotVisible( | 4199 worker_context->CacheController()->ClientBecameNotVisible( |
| 4201 std::move(worker_context_visibility_)); | 4200 std::move(worker_context_visibility_)); |
| 4202 } | 4201 } |
| 4203 } | 4202 } |
| 4204 | 4203 |
| 4205 } // namespace cc | 4204 } // namespace cc |
| OLD | NEW |