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.h" | 5 #include "cc/trees/layer_tree_host.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <stack> | 8 #include <stack> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
866 // that we won't be able to detect if a layer is part of |update_list|. | 866 // that we won't be able to detect if a layer is part of |update_list|. |
867 // Change this if this information is required. | 867 // Change this if this information is required. |
868 int render_surface_layer_list_id = 0; | 868 int render_surface_layer_list_id = 0; |
869 LayerTreeHostCommon::CalcDrawPropsMainInputs inputs( | 869 LayerTreeHostCommon::CalcDrawPropsMainInputs inputs( |
870 root_layer, device_viewport_size(), gfx::Transform(), | 870 root_layer, device_viewport_size(), gfx::Transform(), |
871 device_scale_factor_, page_scale_factor_, page_scale_layer, | 871 device_scale_factor_, page_scale_factor_, page_scale_layer, |
872 elastic_overscroll_, overscroll_elasticity_layer_.get(), | 872 elastic_overscroll_, overscroll_elasticity_layer_.get(), |
873 GetRendererCapabilities().max_texture_size, settings_.can_use_lcd_text, | 873 GetRendererCapabilities().max_texture_size, settings_.can_use_lcd_text, |
874 settings_.layers_always_allowed_lcd_text, | 874 settings_.layers_always_allowed_lcd_text, |
875 can_render_to_separate_surface, | 875 can_render_to_separate_surface, |
876 settings_.layer_transforms_should_scale_layer_contents, &update_list, | 876 settings_.layer_transforms_should_scale_layer_contents, |
| 877 settings_.verify_property_trees, &update_list, |
877 render_surface_layer_list_id); | 878 render_surface_layer_list_id); |
878 LayerTreeHostCommon::CalculateDrawProperties(&inputs); | 879 LayerTreeHostCommon::CalculateDrawProperties(&inputs); |
879 | 880 |
880 if (total_frames_used_for_lcd_text_metrics_ <= | 881 if (total_frames_used_for_lcd_text_metrics_ <= |
881 kTotalFramesToUseForLCDTextMetrics) { | 882 kTotalFramesToUseForLCDTextMetrics) { |
882 LayerTreeHostCommon::CallFunctionForSubtree( | 883 LayerTreeHostCommon::CallFunctionForSubtree( |
883 root_layer, | 884 root_layer, |
884 base::Bind(&LayerTreeHost::CalculateLCDTextMetricsCallback, | 885 base::Bind(&LayerTreeHost::CalculateLCDTextMetricsCallback, |
885 base::Unretained(this))); | 886 base::Unretained(this))); |
886 total_frames_used_for_lcd_text_metrics_++; | 887 total_frames_used_for_lcd_text_metrics_++; |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1382 bool children_need_begin_frames) const { | 1383 bool children_need_begin_frames) const { |
1383 proxy_->SetChildrenNeedBeginFrames(children_need_begin_frames); | 1384 proxy_->SetChildrenNeedBeginFrames(children_need_begin_frames); |
1384 } | 1385 } |
1385 | 1386 |
1386 void LayerTreeHost::SendBeginFramesToChildren( | 1387 void LayerTreeHost::SendBeginFramesToChildren( |
1387 const BeginFrameArgs& args) const { | 1388 const BeginFrameArgs& args) const { |
1388 client_->SendBeginFramesToChildren(args); | 1389 client_->SendBeginFramesToChildren(args); |
1389 } | 1390 } |
1390 | 1391 |
1391 } // namespace cc | 1392 } // namespace cc |
OLD | NEW |