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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 const LayerTreeSettings& settings, | 183 const LayerTreeSettings& settings, |
184 LayerTreeHostImplClient* client, | 184 LayerTreeHostImplClient* client, |
185 Proxy* proxy, | 185 Proxy* proxy, |
186 RenderingStatsInstrumentation* rendering_stats_instrumentation, | 186 RenderingStatsInstrumentation* rendering_stats_instrumentation, |
187 SharedBitmapManager* shared_bitmap_manager, | 187 SharedBitmapManager* shared_bitmap_manager, |
188 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, | 188 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, |
189 TaskGraphRunner* task_graph_runner, | 189 TaskGraphRunner* task_graph_runner, |
190 int id) | 190 int id) |
191 : client_(client), | 191 : client_(client), |
192 proxy_(proxy), | 192 proxy_(proxy), |
| 193 settings_(settings), |
193 use_gpu_rasterization_(false), | 194 use_gpu_rasterization_(false), |
194 gpu_rasterization_status_(GpuRasterizationStatus::OFF_DEVICE), | 195 gpu_rasterization_status_(GpuRasterizationStatus::OFF_DEVICE), |
195 input_handler_client_(NULL), | 196 input_handler_client_(NULL), |
196 did_lock_scrolling_layer_(false), | 197 did_lock_scrolling_layer_(false), |
197 should_bubble_scrolls_(false), | 198 should_bubble_scrolls_(false), |
198 wheel_scrolling_(false), | 199 wheel_scrolling_(false), |
199 scroll_affects_scroll_handler_(false), | 200 scroll_affects_scroll_handler_(false), |
200 scroll_layer_id_when_mouse_over_scrollbar_(0), | 201 scroll_layer_id_when_mouse_over_scrollbar_(0), |
201 tile_priorities_dirty_(false), | 202 tile_priorities_dirty_(false), |
202 root_layer_scroll_offset_delegate_(NULL), | 203 root_layer_scroll_offset_delegate_(NULL), |
203 settings_(settings), | |
204 visible_(true), | 204 visible_(true), |
205 cached_managed_memory_policy_( | 205 cached_managed_memory_policy_( |
206 PrioritizedResourceManager::DefaultMemoryAllocationLimit(), | 206 PrioritizedResourceManager::DefaultMemoryAllocationLimit(), |
207 gpu::MemoryAllocation::CUTOFF_ALLOW_EVERYTHING, | 207 gpu::MemoryAllocation::CUTOFF_ALLOW_EVERYTHING, |
208 ManagedMemoryPolicy::kDefaultNumResourcesLimit), | 208 ManagedMemoryPolicy::kDefaultNumResourcesLimit), |
209 pinch_gesture_active_(false), | 209 pinch_gesture_active_(false), |
210 pinch_gesture_end_should_clear_scrolling_layer_(false), | 210 pinch_gesture_end_should_clear_scrolling_layer_(false), |
211 fps_counter_(FrameRateCounter::Create(proxy_->HasImplThread())), | 211 fps_counter_(FrameRateCounter::Create(proxy_->HasImplThread())), |
212 paint_time_counter_(PaintTimeCounter::Create()), | 212 paint_time_counter_(PaintTimeCounter::Create()), |
213 memory_history_(MemoryHistory::Create()), | 213 memory_history_(MemoryHistory::Create()), |
(...skipping 3152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3366 new_target.SetToMin(layer_impl->MaxScrollOffset()); | 3366 new_target.SetToMin(layer_impl->MaxScrollOffset()); |
3367 | 3367 |
3368 curve->UpdateTarget( | 3368 curve->UpdateTarget( |
3369 animation->TrimTimeToCurrentIteration(CurrentBeginFrameArgs().frame_time) | 3369 animation->TrimTimeToCurrentIteration(CurrentBeginFrameArgs().frame_time) |
3370 .InSecondsF(), | 3370 .InSecondsF(), |
3371 new_target); | 3371 new_target); |
3372 | 3372 |
3373 return true; | 3373 return true; |
3374 } | 3374 } |
3375 } // namespace cc | 3375 } // namespace cc |
OLD | NEW |