| 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 <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 use_msaa_(false), | 169 use_msaa_(false), |
| 170 gpu_rasterization_status_(GpuRasterizationStatus::OFF_DEVICE), | 170 gpu_rasterization_status_(GpuRasterizationStatus::OFF_DEVICE), |
| 171 tree_resources_for_gpu_rasterization_dirty_(false), | 171 tree_resources_for_gpu_rasterization_dirty_(false), |
| 172 input_handler_client_(NULL), | 172 input_handler_client_(NULL), |
| 173 did_lock_scrolling_layer_(false), | 173 did_lock_scrolling_layer_(false), |
| 174 wheel_scrolling_(false), | 174 wheel_scrolling_(false), |
| 175 scroll_affects_scroll_handler_(false), | 175 scroll_affects_scroll_handler_(false), |
| 176 scroll_layer_id_when_mouse_over_scrollbar_(0), | 176 scroll_layer_id_when_mouse_over_scrollbar_(0), |
| 177 tile_priorities_dirty_(false), | 177 tile_priorities_dirty_(false), |
| 178 settings_(settings), | 178 settings_(settings), |
| 179 visible_(true), | 179 visible_(false), |
| 180 cached_managed_memory_policy_(settings.memory_policy_), | 180 cached_managed_memory_policy_(settings.memory_policy_), |
| 181 is_synchronous_single_threaded_(!proxy->HasImplThread() && | 181 is_synchronous_single_threaded_(!proxy->HasImplThread() && |
| 182 !settings.single_thread_proxy_scheduler), | 182 !settings.single_thread_proxy_scheduler), |
| 183 // Must be initialized after is_synchronous_single_threaded_ and proxy_. | 183 // Must be initialized after is_synchronous_single_threaded_ and proxy_. |
| 184 tile_manager_( | 184 tile_manager_( |
| 185 TileManager::Create(this, | 185 TileManager::Create(this, |
| 186 GetTaskRunner(), | 186 GetTaskRunner(), |
| 187 is_synchronous_single_threaded_ | 187 is_synchronous_single_threaded_ |
| 188 ? std::numeric_limits<size_t>::max() | 188 ? std::numeric_limits<size_t>::max() |
| 189 : settings.scheduled_raster_task_limit)), | 189 : settings.scheduled_raster_task_limit)), |
| (...skipping 3394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3584 if (active_tree()) { | 3584 if (active_tree()) { |
| 3585 LayerAnimationValueProvider* layer = active_tree()->LayerById(layer_id); | 3585 LayerAnimationValueProvider* layer = active_tree()->LayerById(layer_id); |
| 3586 if (layer) | 3586 if (layer) |
| 3587 return layer->ScrollOffsetForAnimation(); | 3587 return layer->ScrollOffsetForAnimation(); |
| 3588 } | 3588 } |
| 3589 | 3589 |
| 3590 return gfx::ScrollOffset(); | 3590 return gfx::ScrollOffset(); |
| 3591 } | 3591 } |
| 3592 | 3592 |
| 3593 } // namespace cc | 3593 } // namespace cc |
| OLD | NEW |