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_impl.h" | 5 #include "cc/trees/layer_tree_impl.h" |
| 6 | 6 |
| 7 #include "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
| 8 #include "cc/animation/keyframed_animation_curve.h" | 8 #include "cc/animation/keyframed_animation_curve.h" |
| 9 #include "cc/animation/scrollbar_animation_controller.h" | 9 #include "cc/animation/scrollbar_animation_controller.h" |
| 10 #include "cc/debug/traced_value.h" | 10 #include "cc/debug/traced_value.h" |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 273 return; | 273 return; |
| 274 | 274 |
| 275 if (!root_layer()) | 275 if (!root_layer()) |
| 276 return; | 276 return; |
| 277 | 277 |
| 278 { | 278 { |
| 279 TRACE_EVENT1("cc", | 279 TRACE_EVENT1("cc", |
| 280 "LayerTreeImpl::UpdateDrawProperties", | 280 "LayerTreeImpl::UpdateDrawProperties", |
| 281 "IsActive", | 281 "IsActive", |
| 282 IsActiveTree()); | 282 IsActiveTree()); |
| 283 | |
| 284 // TODO(wjmaclean): when settings().use_pinch_virtual_viewport is specified, | |
|
enne (OOO)
2013/06/12 19:44:38
Maybe LayerTreeHost can be told the id of the page
wjmaclean
2013/06/12 19:54:36
Yes, that is the ultimate goal. LTH will be told w
| |
| 285 // pass the page_scale_layer instead of root_scroll_layer_ for the page | |
| 286 // scale application layer in the following call. | |
| 283 LayerTreeHostCommon::CalculateDrawProperties( | 287 LayerTreeHostCommon::CalculateDrawProperties( |
| 284 root_layer(), | 288 root_layer(), |
| 285 layer_tree_host_impl_->DeviceViewport().size(), | 289 layer_tree_host_impl_->DeviceViewport().size(), |
| 286 layer_tree_host_impl_->DeviceTransform(), | 290 layer_tree_host_impl_->DeviceTransform(), |
| 287 device_scale_factor(), | 291 device_scale_factor(), |
| 288 total_page_scale_factor(), | 292 total_page_scale_factor(), |
| 289 root_scroll_layer_, | 293 root_scroll_layer_, |
| 290 MaxTextureSize(), | 294 MaxTextureSize(), |
| 291 settings().can_use_lcd_text, | 295 settings().can_use_lcd_text, |
| 292 settings().layer_transforms_should_scale_layer_contents, | 296 settings().layer_transforms_should_scale_layer_contents, |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 567 | 571 |
| 568 void LayerTreeImpl::ClearLatencyInfo() { | 572 void LayerTreeImpl::ClearLatencyInfo() { |
| 569 latency_info_.Clear(); | 573 latency_info_.Clear(); |
| 570 } | 574 } |
| 571 | 575 |
| 572 void LayerTreeImpl::WillModifyTilePriorities() { | 576 void LayerTreeImpl::WillModifyTilePriorities() { |
| 573 layer_tree_host_impl_->SetNeedsManageTiles(); | 577 layer_tree_host_impl_->SetNeedsManageTiles(); |
| 574 } | 578 } |
| 575 | 579 |
| 576 } // namespace cc | 580 } // namespace cc |
| OLD | NEW |