| 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 rendering_stats_instrumentation_(rendering_stats_instrumentation), | 226 rendering_stats_instrumentation_(rendering_stats_instrumentation), |
| 227 micro_benchmark_controller_(this), | 227 micro_benchmark_controller_(this), |
| 228 shared_bitmap_manager_(shared_bitmap_manager), | 228 shared_bitmap_manager_(shared_bitmap_manager), |
| 229 gpu_memory_buffer_manager_(gpu_memory_buffer_manager), | 229 gpu_memory_buffer_manager_(gpu_memory_buffer_manager), |
| 230 task_graph_runner_(task_graph_runner), | 230 task_graph_runner_(task_graph_runner), |
| 231 id_(id), | 231 id_(id), |
| 232 requires_high_res_to_draw_(false), | 232 requires_high_res_to_draw_(false), |
| 233 is_likely_to_require_a_draw_(false), | 233 is_likely_to_require_a_draw_(false), |
| 234 frame_timing_tracker_(FrameTimingTracker::Create(this)) { | 234 frame_timing_tracker_(FrameTimingTracker::Create(this)) { |
| 235 DCHECK(proxy_->IsImplThread()); | 235 DCHECK(proxy_->IsImplThread()); |
| 236 DCHECK_IMPLIES(settings.impl_side_painting, task_graph_runner_); |
| 237 DCHECK_IMPLIES(settings.use_one_copy, !settings.use_zero_copy); |
| 238 DCHECK_IMPLIES(settings.use_zero_copy, !settings.use_one_copy); |
| 236 DidVisibilityChange(this, visible_); | 239 DidVisibilityChange(this, visible_); |
| 237 animation_registrar_->set_supports_scroll_animations( | 240 animation_registrar_->set_supports_scroll_animations( |
| 238 proxy_->SupportsImplScrolling()); | 241 proxy_->SupportsImplScrolling()); |
| 239 | 242 |
| 240 SetDebugState(settings.initial_debug_state); | 243 SetDebugState(settings.initial_debug_state); |
| 241 | 244 |
| 242 // LTHI always has an active tree. | 245 // LTHI always has an active tree. |
| 243 active_tree_ = | 246 active_tree_ = |
| 244 LayerTreeImpl::create(this, new SyncedProperty<ScaleGroup>(), | 247 LayerTreeImpl::create(this, new SyncedProperty<ScaleGroup>(), |
| 245 new SyncedTopControls, new SyncedElasticOverscroll); | 248 new SyncedTopControls, new SyncedElasticOverscroll); |
| (...skipping 3257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3503 new_target.SetToMin(layer_impl->MaxScrollOffset()); | 3506 new_target.SetToMin(layer_impl->MaxScrollOffset()); |
| 3504 | 3507 |
| 3505 curve->UpdateTarget( | 3508 curve->UpdateTarget( |
| 3506 animation->TrimTimeToCurrentIteration(CurrentBeginFrameArgs().frame_time) | 3509 animation->TrimTimeToCurrentIteration(CurrentBeginFrameArgs().frame_time) |
| 3507 .InSecondsF(), | 3510 .InSecondsF(), |
| 3508 new_target); | 3511 new_target); |
| 3509 | 3512 |
| 3510 return true; | 3513 return true; |
| 3511 } | 3514 } |
| 3512 } // namespace cc | 3515 } // namespace cc |
| OLD | NEW |