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 <limits> | 7 #include <limits> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 ++render_surface_layer_list_id_; | 527 ++render_surface_layer_list_id_; |
528 LayerTreeHostCommon::CalcDrawPropsImplInputs inputs( | 528 LayerTreeHostCommon::CalcDrawPropsImplInputs inputs( |
529 root_layer(), DrawViewportSize(), | 529 root_layer(), DrawViewportSize(), |
530 layer_tree_host_impl_->DrawTransform(), device_scale_factor(), | 530 layer_tree_host_impl_->DrawTransform(), device_scale_factor(), |
531 current_page_scale_factor(), page_scale_layer, | 531 current_page_scale_factor(), page_scale_layer, |
532 elastic_overscroll()->Current(IsActiveTree()), | 532 elastic_overscroll()->Current(IsActiveTree()), |
533 overscroll_elasticity_layer_, resource_provider()->max_texture_size(), | 533 overscroll_elasticity_layer_, resource_provider()->max_texture_size(), |
534 settings().can_use_lcd_text, settings().layers_always_allowed_lcd_text, | 534 settings().can_use_lcd_text, settings().layers_always_allowed_lcd_text, |
535 can_render_to_separate_surface, | 535 can_render_to_separate_surface, |
536 settings().layer_transforms_should_scale_layer_contents, | 536 settings().layer_transforms_should_scale_layer_contents, |
| 537 settings().verify_property_trees, |
537 &render_surface_layer_list_, render_surface_layer_list_id_); | 538 &render_surface_layer_list_, render_surface_layer_list_id_); |
538 LayerTreeHostCommon::CalculateDrawProperties(&inputs); | 539 LayerTreeHostCommon::CalculateDrawProperties(&inputs); |
539 } | 540 } |
540 | 541 |
541 { | 542 { |
542 TRACE_EVENT_BEGIN2("cc", "LayerTreeImpl::UpdateTilePriorities", "IsActive", | 543 TRACE_EVENT_BEGIN2("cc", "LayerTreeImpl::UpdateTilePriorities", "IsActive", |
543 IsActiveTree(), "SourceFrameNumber", | 544 IsActiveTree(), "SourceFrameNumber", |
544 source_frame_number_); | 545 source_frame_number_); |
545 scoped_ptr<OcclusionTracker<LayerImpl>> occlusion_tracker; | 546 scoped_ptr<OcclusionTracker<LayerImpl>> occlusion_tracker; |
546 if (settings().use_occlusion_for_tile_prioritization) { | 547 if (settings().use_occlusion_for_tile_prioritization) { |
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1519 scoped_ptr<PendingPageScaleAnimation> pending_animation) { | 1520 scoped_ptr<PendingPageScaleAnimation> pending_animation) { |
1520 pending_page_scale_animation_ = pending_animation.Pass(); | 1521 pending_page_scale_animation_ = pending_animation.Pass(); |
1521 } | 1522 } |
1522 | 1523 |
1523 scoped_ptr<PendingPageScaleAnimation> | 1524 scoped_ptr<PendingPageScaleAnimation> |
1524 LayerTreeImpl::TakePendingPageScaleAnimation() { | 1525 LayerTreeImpl::TakePendingPageScaleAnimation() { |
1525 return pending_page_scale_animation_.Pass(); | 1526 return pending_page_scale_animation_.Pass(); |
1526 } | 1527 } |
1527 | 1528 |
1528 } // namespace cc | 1529 } // namespace cc |
OLD | NEW |