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 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 micro_benchmark_controller_(this), | 251 micro_benchmark_controller_(this), |
252 need_to_update_visible_tiles_before_draw_(false), | 252 need_to_update_visible_tiles_before_draw_(false), |
253 #if DCHECK_IS_ON | 253 #if DCHECK_IS_ON |
254 did_lose_called_(false), | 254 did_lose_called_(false), |
255 #endif | 255 #endif |
256 shared_bitmap_manager_(manager), | 256 shared_bitmap_manager_(manager), |
257 id_(id), | 257 id_(id), |
258 transfer_buffer_memory_limit_(0u) { | 258 transfer_buffer_memory_limit_(0u) { |
259 DCHECK(proxy_->IsImplThread()); | 259 DCHECK(proxy_->IsImplThread()); |
260 DidVisibilityChange(this, visible_); | 260 DidVisibilityChange(this, visible_); |
| 261 animation_registrar_->set_supports_scroll_animations( |
| 262 proxy_->SupportsImplScrolling()); |
261 | 263 |
262 SetDebugState(settings.initial_debug_state); | 264 SetDebugState(settings.initial_debug_state); |
263 | 265 |
264 if (settings.calculate_top_controls_position) { | 266 if (settings.calculate_top_controls_position) { |
265 top_controls_manager_ = | 267 top_controls_manager_ = |
266 TopControlsManager::Create(this, | 268 TopControlsManager::Create(this, |
267 settings.top_controls_height, | 269 settings.top_controls_height, |
268 settings.top_controls_show_threshold, | 270 settings.top_controls_show_threshold, |
269 settings.top_controls_hide_threshold); | 271 settings.top_controls_hide_threshold); |
270 } | 272 } |
(...skipping 2872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3143 } | 3145 } |
3144 | 3146 |
3145 void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { | 3147 void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { |
3146 std::vector<PictureLayerImpl*>::iterator it = | 3148 std::vector<PictureLayerImpl*>::iterator it = |
3147 std::find(picture_layers_.begin(), picture_layers_.end(), layer); | 3149 std::find(picture_layers_.begin(), picture_layers_.end(), layer); |
3148 DCHECK(it != picture_layers_.end()); | 3150 DCHECK(it != picture_layers_.end()); |
3149 picture_layers_.erase(it); | 3151 picture_layers_.erase(it); |
3150 } | 3152 } |
3151 | 3153 |
3152 } // namespace cc | 3154 } // namespace cc |
OLD | NEW |