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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 micro_benchmark_controller_(this), | 235 micro_benchmark_controller_(this), |
236 shared_bitmap_manager_(shared_bitmap_manager), | 236 shared_bitmap_manager_(shared_bitmap_manager), |
237 gpu_memory_buffer_manager_(gpu_memory_buffer_manager), | 237 gpu_memory_buffer_manager_(gpu_memory_buffer_manager), |
238 task_graph_runner_(task_graph_runner), | 238 task_graph_runner_(task_graph_runner), |
239 id_(id), | 239 id_(id), |
240 requires_high_res_to_draw_(false), | 240 requires_high_res_to_draw_(false), |
241 is_likely_to_require_a_draw_(false), | 241 is_likely_to_require_a_draw_(false), |
242 frame_timing_tracker_(FrameTimingTracker::Create(this)) { | 242 frame_timing_tracker_(FrameTimingTracker::Create(this)) { |
243 if (settings.use_compositor_animation_timelines) { | 243 if (settings.use_compositor_animation_timelines) { |
244 if (settings.accelerated_animation_enabled) { | 244 if (settings.accelerated_animation_enabled) { |
245 animation_host_ = AnimationHost::Create(ThreadInstance::IMPL); | 245 animation_host_ = AnimationHost::Create(); |
246 animation_host_->SetMutatorHostClient(this); | 246 animation_host_->SetMutatorHostClient(this); |
247 animation_host_->SetSupportsScrollAnimations( | 247 animation_host_->SetSupportsScrollAnimations( |
248 proxy_->SupportsImplScrolling()); | 248 proxy_->SupportsImplScrolling()); |
249 } | 249 } |
250 } else { | 250 } else { |
251 animation_registrar_ = AnimationRegistrar::Create(); | 251 animation_registrar_ = AnimationRegistrar::Create(); |
252 animation_registrar_->set_supports_scroll_animations( | 252 animation_registrar_->set_supports_scroll_animations( |
253 proxy_->SupportsImplScrolling()); | 253 proxy_->SupportsImplScrolling()); |
254 } | 254 } |
255 | 255 |
(...skipping 3330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3586 const gfx::ScrollOffset& scroll_offset) { | 3586 const gfx::ScrollOffset& scroll_offset) { |
3587 if (tree_type == LayerTreeType::ACTIVE) { | 3587 if (tree_type == LayerTreeType::ACTIVE) { |
3588 SetTreeLayerScrollOffsetMutated(layer_id, active_tree(), scroll_offset); | 3588 SetTreeLayerScrollOffsetMutated(layer_id, active_tree(), scroll_offset); |
3589 } else { | 3589 } else { |
3590 SetTreeLayerScrollOffsetMutated(layer_id, pending_tree(), scroll_offset); | 3590 SetTreeLayerScrollOffsetMutated(layer_id, pending_tree(), scroll_offset); |
3591 SetTreeLayerScrollOffsetMutated(layer_id, recycle_tree(), scroll_offset); | 3591 SetTreeLayerScrollOffsetMutated(layer_id, recycle_tree(), scroll_offset); |
3592 } | 3592 } |
3593 } | 3593 } |
3594 | 3594 |
3595 } // namespace cc | 3595 } // namespace cc |
OLD | NEW |