Chromium Code Reviews| 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_); | |
|
enne (OOO)
2015/06/15 22:58:46
Do we have a one copy implies not zero copy and ze
danakj
2015/06/15 23:02:35
We do in RenderProcessHostImpl not in cc. I can ad
| |
| 236 DidVisibilityChange(this, visible_); | 237 DidVisibilityChange(this, visible_); |
| 237 animation_registrar_->set_supports_scroll_animations( | 238 animation_registrar_->set_supports_scroll_animations( |
| 238 proxy_->SupportsImplScrolling()); | 239 proxy_->SupportsImplScrolling()); |
| 239 | 240 |
| 240 SetDebugState(settings.initial_debug_state); | 241 SetDebugState(settings.initial_debug_state); |
| 241 | 242 |
| 242 // LTHI always has an active tree. | 243 // LTHI always has an active tree. |
| 243 active_tree_ = | 244 active_tree_ = |
| 244 LayerTreeImpl::create(this, new SyncedProperty<ScaleGroup>(), | 245 LayerTreeImpl::create(this, new SyncedProperty<ScaleGroup>(), |
| 245 new SyncedTopControls, new SyncedElasticOverscroll); | 246 new SyncedTopControls, new SyncedElasticOverscroll); |
| (...skipping 3258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3504 new_target.SetToMin(layer_impl->MaxScrollOffset()); | 3505 new_target.SetToMin(layer_impl->MaxScrollOffset()); |
| 3505 | 3506 |
| 3506 curve->UpdateTarget( | 3507 curve->UpdateTarget( |
| 3507 animation->TrimTimeToCurrentIteration(CurrentBeginFrameArgs().frame_time) | 3508 animation->TrimTimeToCurrentIteration(CurrentBeginFrameArgs().frame_time) |
| 3508 .InSecondsF(), | 3509 .InSecondsF(), |
| 3509 new_target); | 3510 new_target); |
| 3510 | 3511 |
| 3511 return true; | 3512 return true; |
| 3512 } | 3513 } |
| 3513 } // namespace cc | 3514 } // namespace cc |
| OLD | NEW |